    『楼 主』:
用于Config.sys的并列配置菜单 ConfigP.Mnu 2.02
使用 LLM 解释/回答一下
一、特点
1. 常见的配置菜单是逐级往下执行,不可返回,像串联。嵌套级数多时,菜单项目将会呈级数放大趋势,使菜单编写比较繁琐,重复项较多。本配置菜单是并列关系,菜单编写简捷,可阅读性强。菜单可连续选择,也可顺序返回或直接返回首菜单。
2. 工作在640×480 256色模式(101模式)。
3. 可加载gif格式图像。
4. 可加载中文字库,内嵌中英文字符显示程序,为显示中文菜单提供了一个良好的平台。
5. 设有标题和尾注,每行都可单独设定颜色。
6. 设有注释,为菜单提供简要说明,可单独设定颜色和位置。
7. 可屏蔽Config.sys处理过程中的显示信息。
二、简要说明
1. 菜单分为3种:嵌套菜单(NestMenu),复选菜单(CheckMenu),单选菜单(RadioMenu)。
嵌套菜单用来选择下一步打开哪一个菜单。它更像是一个目录,说明配置哪些内容,缺省加载哪些内容。
嵌套菜单可以没有项目。
复选菜单用来加载相容的驱动程序,可不选或全选。
单选菜单用来加载互斥的驱动程序,应选择1项且只能选择1项。
2. 项目分为2种:默认项目(DefaultItem),普通项目(Item)。
默认项目是启动时缺省加载的项目。
3. 配置块(block)是按需要组织在一起的一组驱动程序。可在配置块里设定参数,遥控AutoExec.bat。
可在 block=0 之前和 block=end 之后放置公共配置块。
4. 如果子菜单中不含标题、尾注、项目颜色、项目说明首字缩进则继承父菜单内容。
5. 如果菜单中的标题、尾注不含颜色,则使用项目颜色。
6. 如果子菜单中注释不含颜色、位置,则继承父菜单内容。
7. 在photoshop中调整图像尺寸,存储为web所有格式,在弹出菜单中选gif格式且受限于web,颜色选256色(否则字符颜色不正常),适当调整损耗值以减小图像尺寸。
8. 中文字库16j.dot应放在当前目录。
三、使用方法
1. 选择项目方法
a. 按相应字母键。
b. 按↑/↓键,向上/向下顺序循环选择。
2. 设定项目方法
a.复选项目,按空格或回车键,选定/清除。
b.单选项目,在选择的同时被设定。
3. 选择菜单方法
a. 按→键,向后连续选择。
b. 按←键,顺序返回。
c. 在嵌套菜单被选项目按空格键或回车键,打开指定菜单。
4. 退出菜单方法
a.在首菜单按Esc或退格键,退出菜单配置。
b.在其他菜单,按Esc或退格键返回首菜单。
5. 开关参数
a. /s 屏蔽config.sys显示信息。
b. /u 解除屏蔽。
c. /i 背景图像。
6. 英文字母大小写转换
在同一行中,默认为大写,遇^转换。
例:c^onfig^p.m^nu 显示为 ConfigP.Mnu
四、语法说明
1. 菜单
rem 0NestMenu=rrggbb,u,....
rem 0CheckMenu=rrggbb,u,....
rem 0RadioMenu=rrggbb,u,....
0 菜单顺序号。
rrggbb 注释颜色,缺省同color。
u 注释位置(u显示在上部,d显示在下部),缺省d。
.... 注释内容。
例:=ffff00,u,....
=ffff00,,....
=,u,....
=,,....
=
2. 项目颜色,被选项目显示方式,缺省000000999999,c
rem color=
背景/前景色(rrggbbrrggbb)。
rr、gg、bb分别是红绿兰3色份量,范围在00-ff之间,按web_216颜色表取值。
被选项目显示方式:c反色,h高亮。字符背景色透明时只限反色。
字符背景色透明(t)。
例:=000000999999,h
=000000999999
=,h
=000000999999,c,t
=000000999999,,t
3. 项目说明首字缩进,缺省4(10进制)
rem initial=
4. 主菜单时间,时间标签,缺省60(10进制)
rem time=30,....
30 时间(秒)。
.... 时间标签。
例:=30,剩余时间
=30
5. 标题
rem caption=rrggbb,....
rrggbb 标题颜色,缺省同color。
.... 标题内容。
例:=999999,....
=,....
=
6. 尾注
rem endnote=rrggbb,....
rrggbb 尾注颜色,缺省同color。
.... 尾注内容。
例:=999999,....
=,....
=
7. 项目
rem item=2=....
rem DefaultItem=2,11=....
数字 对于嵌套菜单,是菜单顺序号(如打开第2页菜单)。
对于单选菜单、复选菜单是配置块顺序号(如包含第2、11配置块)。
.... 项目说明。
8. 配置块
rem block=0
....
rem block=end
0 配置块顺序号。
end 配置块结束符。
9. rem可用'; '代替
例1:统一的标题、尾注,每一菜单的功能由注释说明。
device=himem.sys
device=ConfigP.Mun /i txz.gif /s
; 0NestMenu=ffff00,u, 首菜单
; color=cc99ff00ffff,,t
; initial=22
; time=10,剩余时间
; caption=
; caption=
; caption=
; caption=
; caption=
; caption=
; caption=ff3366, 中文 MSDOS_7.1 启动盘
; caption=3333ff, ================================================
; endnote=ff33ff, 按上下方向键或相应字母键选择项目,按空格或回车键设定项目
; endnote=ffcc99, 按左右方向键连续选择菜单页,按E^sc或退格键返回首菜单或退出编辑
; item=1=选择启动模式 默认加载 umbpci
; item=2=选择光驱 默认加载 vide-cdd
; item=3=选择usb 默认不加载
; 1RadioMenu=,, 选择启动模式 (单选)
; DefaultItem=0,9=加载 umbpci
; item=1,9=加载 emm386
; item==最小加载
; 2CheckMenu=,, 选择光驱 (复选)
; DefaultItem=2=加载 vide-cdd
; item=3=加载 aspicd
; item=4=加载 usbcd
; 3CheckMenu=,, 选择usb (复选)
; item=5=加载 usbaspi
; item=6=加载 di1000dd
; item=7=加载 aspiohci
; item=8=加载 aspiuhci
device=xmsdsk.sys 9216 /y
; block=0
device=umbpci.sys
; block=1
device=emm386.exe
; block=2
device=vide-cdd.sys /d:ide-cd
; block=3
device=aspicd.sys /d:scsi-cd
; block=4
device=usbcd.sys /d:usb-cd
; block=5
device=usbaspi.sys /r /NORST
; block=6
device=di1000dd.sys
; block=7
device=aspiohci.sys /int /all
; block=8
device=aspiuhci.sys /int /all
; block=9
dos=high,umb,auto
; block=end
fcbshigh=4,0
fileshigh=30
buffershigh=30,0
lastdrivehigh=32
device=ConfigP.com /u
这一版本主要修改:
1.由显示模式3(640×480 16色)改为显示模式101(640×480 256色)
2.增加显示gif格式图像模块
3.增加显示中英文字符模块
4.增加单选钮、复选框、进度条图标
Last edited by yaya on 2007-8-8 at 02:32 PM ]
### Features
1. The common configuration menu is executed step by step downward and cannot be returned, like a series connection. When the nesting level is large, the menu items will show an exponential growth trend, making menu writing more cumbersome and having more repeated items. This configuration menu is in a parallel relationship, with simple menu writing and strong readability. The menu can be continuously selected, or can be returned sequentially or directly to the main menu.
2. Works in 640×480 256-color mode (mode 101).
3. Can load GIF format images.
4. Can load Chinese character fonts, and has an embedded Chinese and English character display program, providing a good platform for displaying Chinese menus.
5. Has a title and a footer, and each line can set a color separately.
6. Has comments, providing a brief description for the menu, and can set the color and position separately.
7. Can shield the display information in the Config.sys processing process.
### Brief Description
1. Menus are divided into 3 types: nested menu (NestMenu), check menu (CheckMenu), and radio menu (RadioMenu).
- The nested menu is used to select which menu to open next. It is more like a directory, indicating which contents to configure and which contents are loaded by default.
- The nested menu can have no items.
- The check menu is used to load compatible drivers, and can be not selected or all selected.
- The radio menu is used to load mutually exclusive drivers, and should select 1 item and only 1 item.
2. Items are divided into 2 types: default item (DefaultItem) and ordinary item (Item).
- The default item is the item loaded by default at startup.
3. A configuration block (block) is a group of drivers organized as needed. Parameters can be set in the configuration block, and AutoExec.bat can be remotely controlled.
- Public configuration blocks can be placed before block=0 and after block=end.
4. If the sub-menu does not contain title, footer, item color, and first-line indentation of item description, it inherits the content of the parent menu.
5. If the title and footer in the menu do not contain color, the item color is used.
6. If the comment in the sub-menu does not contain color and position, it inherits the content of the parent menu.
7. Adjust the image size in Photoshop, save it as all web formats, select GIF format in the pop-up menu and be limited by web, select 256 colors (otherwise the character color is abnormal), and appropriately adjust the loss value to reduce the image size.
8. The Chinese character font 16j.dot should be placed in the current directory.
### Usage Method
1. Method of selecting items
a. Press the corresponding letter key.
b. Press the ↑/↓ key to cycle through selection upward/downward.
2. Method of setting items
a. For check items, press the space bar or Enter key to select/clear.
b. For radio items, it is set while being selected.
3. Method of selecting menus
a. Press the → key to continuously select backward.
b. Press the ← key to return sequentially.
c. Press the space bar or Enter key on the selected item in the nested menu to open the specified menu.
4. Method of exiting the menu
a. Press Esc or Backspace key on the main menu to exit the menu configuration.
b. On other menus, press Esc or Backspace key to return to the main menu.
5. Switch parameters
a. /s Shield the display information of Config.sys.
b. /u Remove shielding.
c. /i Background image.
6. Conversion of English letter case
In the same line, it is default to uppercase, and converted when encountering ^.
Example: c^onfig^p.m^nu is displayed as ConfigP.Mnu
### Syntax Description
1. Menu
rem 0NestMenu=rrggbb,u,....
rem 0CheckMenu=rrggbb,u,....
rem 0RadioMenu=rrggbb,u,....
0 Menu sequence number.
rrggbb Comment color, default is the same as color.
u Comment position (u is displayed in the upper part , d is displayed in the lower part ), default d.
.... Comment content.
Example: =ffff00,u,....
=ffff00,,....
=,u,....
=,,....
=
2. Item color, display mode of the selected item, default 000000999999,c
rem color=
Background/foreground color (rrggbbrrggbb).
rr, gg, bb are the color components of red, green, and blue respectively, ranging from 00 to ff, and taking values according to the web_216 color table.
Display mode of the selected item: c inverse color, h highlight. Only inverse color is allowed when the character background color is transparent.
Character background color transparent (t).
Example: =000000999999,h
=000000999999
=,h
=000000999999,c,t
=000000999999,,t
3. First-line indentation of item description, default 4 (decimal)
rem initial=
4. Main menu time, time label, default 60 (decimal)
rem time=30,....
30 Time (seconds).
.... Time label.
Example: =30,Remaining time
=30
5. Title
rem caption=rrggbb,....
rrggbb Title color, default is the same as color.
.... Title content.
Example: =999999,....
=,....
=
6. Footer
rem endnote=rrggbb,....
rrggbb Footer color, default is the same as color.
.... Footer content.
Example: =999999,....
=,....
=
7. Item
rem item=2=....
rem DefaultItem=2,11=....
Number For the nested menu, it is the menu sequence number (e.g., open the 2nd page menu).
For the radio menu and check menu, it is the configuration block sequence number (e.g., include configuration blocks 2 and 11).
.... Item description.
8. Configuration block
rem block=0
....
rem block=end
0 Configuration block sequence number.
end Configuration block end symbol.
9. rem can be replaced by '; '
Example 1: Unified title and footer, and the function of each menu is explained by comments.
device=himem.sys
device=ConfigP.Mun /i txz.gif /s
; 0NestMenu=ffff00,u, Main menu
; color=cc99ff00ffff,,t
; initial=22
; time=10,Remaining time
; caption=
; caption=
; caption=
; caption=
; caption=
; caption=ff3366, Chinese MSDOS_7.1 Boot Disk
; caption=3333ff, ================================================
; endnote=ff33ff, Select items by pressing up/down arrow keys or corresponding letter keys, and set items by pressing space bar or Enter key
; endnote=ffcc99, Continuously select menu pages by pressing left/right arrow keys, and press E^sc or Backspace key to return to main menu or exit editing
; item=1=Select startup mode Default load umbpci
; item=2=Select CD-ROM Default load vide-cdd
; item=3=Select USB Default not load
; 1RadioMenu=,, Select startup mode (Radio)
; DefaultItem=0,9=Load umbpci
; item=1,9=Load emm386
; item==Minimum load
; 2CheckMenu=,, Select CD-ROM (Check)
; DefaultItem=2=Load vide-cdd
; item=3=Load aspicd
; item=4=Load usbcd
; 3CheckMenu=,, Select USB (Check)
; item=5=Load usbaspi
; item=6=Load di1000dd
; item=7=Load aspiohci
; item=8=Load aspiuhci
device=xmsdsk.sys 9216 /y
; block=0
device=umbpci.sys
; block=1
device=emm386.exe
; block=2
device=vide-cdd.sys /d:ide-cd
; block=3
device=aspicd.sys /d:scsi-cd
; block=4
device=usbcd.sys /d:usb-cd
; block=5
device=usbaspi.sys /r /NORST
; block=6
device=di1000dd.sys
; block=7
device=aspiohci.sys /int /all
; block=8
device=aspiuhci.sys /int /all
; block=9
dos=high,umb,auto
; block=end
fcbshigh=4,0
fileshigh=30
buffershigh=30,0
lastdrivehigh=32
device=ConfigP.com /u
The main modifications in this version:
1. Changed from display mode 3 (640×480 16 colors) to display mode 101 (640×480 256 colors)
2. Added a module to display GIF format images
3. Added a module to display Chinese and English characters
4. Added radio buttons, check boxes, and progress bar icons
Last edited by yaya on 2007-8-8 at 02:32 PM ]
附件
1: configp1.jpg (2007-7-5 11:54, 136.15 KiB, 下载附件所需积分 1 点
,下载次数: 4)
附件
2: configp2.jpg (2007-7-5 11:54, 134.67 KiB,下载次数: 4)
附件
3: configp3.jpg (2007-7-5 11:54, 134.55 KiB,下载次数: 6)
|