无忧启动论坛

 找回密码
 注册
搜索
系统gho:最纯净好用系统下载站投放广告、加入VIP会员,请联系 微信:wuyouceo
查看: 3641|回复: 28
打印 上一主题 下一主题

從頭問起,用mkcmenu怎麽寫?

[复制链接]
跳转到指定楼层
1#
发表于 2002-6-20 08:48:54 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
DSKEM00.TXT文件内容:

print                          光盘启动程序
print
print          [1] 从硬盘启动
print          [2] 安装 Win2000 专业版
print          [3] 安装 Win2000 服务器版
print          [4] 安装 Win2000 高级服务器版
print          [5] 安装 Win98SE
print          [6] 安装 WinMe
print          [7] Dos 6.22启动
print
print
print        请选择(回车或等待30秒,自动进入[1])
;
:loop
getkey 30 entr
onkey entr goto menu1
onkey up goto menu7
onkey down goto menu2
goto loop
:menu1
cls
boot 80
:menu2
cls
run wsrsect.bin
:menu7
run dos622.img
;EOF

寫得好象不對,我該怎麽寫?
再有DSKEM01.TXT~DSKEM07.TXT又該怎麽寫?
2#
发表于 2002-6-20 08:55:54 | 只看该作者

從頭問起,用mkcmenu怎麽寫?

这是我的DSKEMU0.TXT

:start
cls
print 1
print    以我无限热情 传承“自由”文明      版权没有!拷贝自由!   2002年6月1日
print
print
print                              万 能 中 文 启 动 盘
print  
print                             1. 硬盘启动 (默认10秒)
print
print                             2. 光   盘   启   动
print
print                             3. 启   动   纯  DOS
print
print                             4. O&O BlueCon 2000
print
print                             5. O&O BlueCon winxp
print
print                             R. 重   新   启   动
print
print                             A. 软   驱   启   动
print
print                             H. 帮   助   说   明
print
print                             硬盘启动:
print
print             请按热键(1-5,R,A,H)或光标键(↑和↓)选择 回车键(Enter)确认
;
:menu0
print 1
goto pass1
;
:pass1
print 2
getkey 2 0xFFFF
onkey up goto passup
onkey down goto passdown
onkey entr  boot 80
onkey 1 boot 80
onkey 2 goto cdrom
onkey 3 goto dos98
onkey 4 goto oobc
onkey 5 goto ooxp
onkey r reboot
onkey a goto run1
onkey h goto help
onkey 0xFFFF goto pass2
goto passb
;
:pass2
print 3
getkey 2 0xFFFF
onkey up goto passup
onkey down goto passdown
onkey entr  boot 80
onkey 1 boot 80
onkey 2 goto cdrom
onkey 3 goto dos98
onkey 4 goto oobc
onkey 5 goto ooxp
onkey r reboot
onkey a goto run1
onkey h goto help
onkey 0xFFFF goto pass3
goto passb
;
:pass3
print 4
getkey 2 0xFFFF
onkey up goto passup
onkey down goto passdown
onkey entr  boot 80
onkey 1 boot 80
onkey 2 goto cdrom
onkey 3 goto dos98
onkey 4 goto oobc
onkey 5 goto ooxp
onkey r reboot
onkey a goto run1
onkey h goto help
onkey 0xFFFF goto pass4
goto passb
;
:pass4
print 5
getkey 2 0xFFFF
onkey up goto passup
onkey down goto passdown
onkey entr  boot 80
onkey 1 boot 80
onkey 2 goto cdrom
onkey 3 goto dos98
onkey 4 goto oobc
onkey 5 goto ooxp
onkey r reboot
onkey a goto run1
onkey h goto help
onkey 0xFFFF goto pass5
goto passb
;
:pass5
print 6
getkey 1 0xFFFF
onkey up goto passup
onkey down goto passdown
onkey entr  boot 80
onkey 1 boot 80
onkey 2 goto cdrom
onkey 3 goto dos98
onkey 4 goto oobc
onkey 5 goto ooxp
onkey r reboot
onkey a goto run1
onkey h goto help
onkey 0xFFFF boot 80
goto passb
;
;
;
;
;
;
;
;
:passb
goto menu1
;
:passdown
goto menu1
;
:passup
goto menuh
;;
;
;
;
;
;
;
;
:menu1
print 8
getkey
onkey up    goto menuh
onkey down  goto menu2
onkey entr  boot 80
onkey 1 boot 80
onkey 2 goto cdrom
onkey 3 goto dos98
onkey 4 goto oobc
onkey 5 goto ooxp
onkey r reboot
onkey a goto run1
onkey h goto help
goto menu1
;
:menu2
print 9
getkey
onkey up    goto menu1
onkey down  goto menu3
onkey entr  goto cdrom
onkey 1 boot 80
onkey 2 goto cdrom
onkey 4 goto oobc
onkey 5 goto ooxp
onkey 3 goto dos98
onkey r reboot
onkey a goto run1
onkey h goto help
goto menu2
;
:menu3
print a
getkey
onkey up    goto menu2
onkey down  goto menu4
onkey entr  goto dos98
onkey 1 boot 80
onkey 2 goto cdrom
onkey 3 goto dos98
onkey 4 goto oobc
onkey 5 goto ooxp
onkey r reboot
onkey a goto run1
onkey h goto help
goto menu3
;
:menu4
print b
getkey
onkey up    goto menu3
onkey down  goto menu5
onkey entr  goto oobc
onkey 1 boot 80
onkey 2 goto cdrom
onkey 3 goto dos98
onkey 4 goto oobc
onkey 5 goto ooxp
onkey r reboot
onkey a goto run1
onkey h goto help
goto menu4
;
:menu5
print c
getkey
onkey up    goto menu4
onkey down  goto menur
onkey entr  goto ooxp
onkey 1 boot 80
onkey 2 goto cdrom
onkey 3 goto dos98
onkey 4 goto oobc
onkey 5 goto ooxp
onkey r reboot
onkey a goto run1
onkey h goto help
goto menu5
;
:menur
print d
getkey
onkey up    goto menu5
onkey down  goto menua
onkey entr  reboot
onkey 1 boot 80
onkey 2 goto cdrom
onkey 3 goto dos98
onkey 4 goto oobc
onkey 5 goto ooxp
onkey r reboot
onkey a goto run1
onkey h goto help
goto menur
;
:menua
print e
getkey
onkey up    goto menur
onkey down  goto menuh
onkey entr goto run1
onkey 1 boot 80
onkey 2 goto cdrom
onkey 3 goto dos98
onkey 4 goto oobc
onkey 5 goto ooxp
onkey r reboot
onkey a goto run1
onkey h goto help
goto menua
;
:menuh
print f
getkey
onkey up    goto menua
onkey down  goto menu1
onkey entr goto help
onkey 1 boot 80
onkey 2 goto cdrom
onkey 3 goto dos98
onkey 4 goto oobc
onkey 5 goto ooxp
onkey r reboot
onkey a goto run1
onkey h goto help
goto menuh
;
:cdrom
cls
cd image
run cdrom.img
getkey
cls
goto start
;
:dos98
cls
cd image
run dos98.img
getkey
cls
goto start
;
:OOBC
print Starting O&O BlueCon 2000 NT4
cd image
run OOBCSECT.DAT
getkey
goto start
;
:OOxp
print Starting O&O BlueCon xp
cd image
run OOxpSECT.DAT
getkey
goto start
;
:run1
cls
boot 0
getkey
cls
goto start
;
:help
cls
run dskemu1.bin
getkey
cls
goto start
;EOF
回复

使用道具 举报

3#
发表于 2002-6-20 08:56:00 | 只看该作者

從頭問起,用mkcmenu怎麽寫?

你的 E-MAIL贴出来给你一个教程
回复

使用道具 举报

4#
发表于 2002-6-20 08:57:34 | 只看该作者

從頭問起,用mkcmenu怎麽寫?

这是我的DSKEMU1.TXT

:start
cls
print 1
print
print
print
print                                光 盘 简 要 说 明
print
print
print
print                      本光盘为启动光盘,请按热键选择。光盘下
print
print                  运行“README.EXE”文件为光盘内程序简要说明,
print
print                  在WINDOWS下会自动运行。如有疑问请联系:
print
print
print                                          电 话:0448-7339517
print                                          手 机:13843556517
print                                          Email:liangang_cn@msn.com
print                                   银河网络 廉刚软体工作室荣誉出品
print
print
print                                请按空格键返回... ...
print
;
:menu0
getkey
onkey spc goto run
goto menu0
;
:run
cls
run dskemu0.bin
;EOF
回复

使用道具 举报

5#
 楼主| 发表于 2002-6-20 08:59:41 | 只看该作者

從頭問起,用mkcmenu怎麽寫?

謝謝各位,rolan@263.net
回复

使用道具 举报

6#
 楼主| 发表于 2002-6-20 09:00:30 | 只看该作者

從頭問起,用mkcmenu怎麽寫?

小蝦米,可不可以給點註釋呀。
回复

使用道具 举报

7#
发表于 2002-6-20 09:03:28 | 只看该作者

從頭問起,用mkcmenu怎麽寫?

可以,给你一个贴图
回复

使用道具 举报

8#
 楼主| 发表于 2002-6-20 09:12:42 | 只看该作者

從頭問起,用mkcmenu怎麽寫?

在哪呀?
回复

使用道具 举报

9#
发表于 2002-6-20 09:13:14 | 只看该作者

從頭問起,用mkcmenu怎麽寫?

[UploadFile=2_4206_8.jpg]这是刚刚抓的图
回复

使用道具 举报

10#
发表于 2002-6-20 09:14:54 | 只看该作者

從頭問起,用mkcmenu怎麽寫?

再仔细看看DSKEMU0.TXT 就知道了
回复

使用道具 举报

11#
 楼主| 发表于 2002-6-20 09:16:08 | 只看该作者

從頭問起,用mkcmenu怎麽寫?

謝謝,但我想要得是DSKEM00.txt裏的程序註釋。
回复

使用道具 举报

12#
发表于 2002-6-20 09:24:07 | 只看该作者

從頭問起,用mkcmenu怎麽寫?

一般可以看明白的呀?!
回复

使用道具 举报

13#
 楼主| 发表于 2002-6-20 09:50:33 | 只看该作者

從頭問起,用mkcmenu怎麽寫?

print 1
print 2
print 3等等起什麽作用。
回复

使用道具 举报

14#
 楼主| 发表于 2002-6-20 09:52:02 | 只看该作者

從頭問起,用mkcmenu怎麽寫?

getkey 2 0xFFFF
這又有什麽作用呢?
回复

使用道具 举报

15#
发表于 2002-6-20 10:48:51 | 只看该作者

從頭問起,用mkcmenu怎麽寫?

好象刻在光盘上做启动盘中文字符显示有问题的!
回复

使用道具 举报

16#
 楼主| 发表于 2002-6-20 11:24:57 | 只看该作者

從頭問起,用mkcmenu怎麽寫?

真的嗎?
回复

使用道具 举报

17#
发表于 2002-6-20 11:47:16 | 只看该作者

從頭問起,用mkcmenu怎麽寫?

能给我个教程吗?puqing@etang.com
回复

使用道具 举报

18#
 楼主| 发表于 2002-6-20 12:02:45 | 只看该作者

從頭問起,用mkcmenu怎麽寫?

等我搞懂了就發給你。
回复

使用道具 举报

19#
发表于 2002-6-20 15:32:18 | 只看该作者

從頭問起,用mkcmenu怎麽寫?

print 1
print 2
...
是指显示光条的位置
回复

使用道具 举报

20#
 楼主| 发表于 2002-6-20 16:18:43 | 只看该作者

從頭問起,用mkcmenu怎麽寫?

那getkey 2 0xFFFF又是什麽意思?
回复

使用道具 举报

21#
发表于 2002-6-20 19:44:20 | 只看该作者

從頭問起,用mkcmenu怎麽寫?

是等两秒钟就自动...
回复

使用道具 举报

22#
发表于 2002-6-21 08:05:36 | 只看该作者

從頭問起,用mkcmenu怎麽寫?

那是时间进程条的设置,cctrv说的很对,因为我启动面下面有一个进程条
回复

使用道具 举报

23#
 楼主| 发表于 2002-6-21 08:38:56 | 只看该作者

從頭問起,用mkcmenu怎麽寫?

我是指0xFFFF代表什麽?
回复

使用道具 举报

24#
发表于 2002-6-21 11:17:55 | 只看该作者

從頭問起,用mkcmenu怎麽寫?

Diskem1x commands
All supported diskem1x command are listed below, click on it for more information.
/* todo: check commands and add more examples */
batch
boot
bootinfotable
cd
cls
dir
echo
emusegm
getkey
goto
help
keyval
loadsegm
onkey
print
quit
readtest
reboot
run
test
type
ver
[ Top ]
batch
Syntax: batch <filename> [<label>]
Run commands in batchfile <filename> starting at <label>
Labels are defined as ":Label"
Comment lines start with a ";"
Example:
Lets assume you have this file called "DE.CMD":
; de.cmd example file
print 123
:four
print 456
; eof de.cmd


The command "batch de.cmd" would return:   123
  456

The command "batch de.cmd four" would return:   456


[ Top ]
boot
Syntax: boot <#drvnum>
Boot from drive number <#drvnum> (in hex)
Example:
Command Description
boot 0 Boot from drive 0 (A:)
boot 80 Boot from harddisk (C:)

[ Top ]
bootinfotable
Syntax: bootinfotable
Modify the boot file by inserting a 56-byte "boot information table" at offset 8 in the file. The same ways as mkisofs does, see mkisofs manpage for more info. Only for "no-emulation" images.
Information table:
Offset Size Meaning
8 4 bytes LBA of primary volume descriptor
12 4 bytes LBA of boot file
16 4 bytes Boot file length in bytes
20 4 bytes 32-bit checksum
24 40 bytes Reserved

[ Top ]
cd
Syntax: cd <path>
Changes the current directory to .
Example:
Command Description
cd bin Goes to the "bin" directory
cd \ Goes back to the root directory

[ Top ]
cls
Syntax: cls (or clear)
Clears the screen and homes the cursor.
[ Top ]
dir
Syntax: dir (or ls)
Displays a list of files and subdirectories in a directory
[ Top ]
echo
Syntax: echo [on/off]
Turn command echoing on/off
[ Top ]
emusegm
Syntax: emusegm <xxxx>
Set the location for the emulator to <xxxx> (hex)
Example:
Command Description
Emusegm 8500 Emulator goes at 8500h:0000h

[ Top ]
getkey
Syntax: getkey [<timeout> <key>]
Wait until a key is pressed. When <timeout> seconds have passed and no key was pressed, the key is returned by getkey command.
Possible values for <key> are:
single character ascii values, like: a, 1 or !
Key "tags": tag key
esc escape
bs backspace
tab tab
entr Enter
spc spacebar
home home
up cursor up
left cursor left
pgup page up
right cursor right
end end
down cursor down
pgdn page down
ins insert
del delete
f1 f1
f2 f2
f3 f3
f4 f4
f5 f5
f6 f6
f7 f7
f8 f8
f9 f9
f10 f10
f11 f11
f12 f12
sf1 shift f1
sf2 shift f2
sf3 shift f3
sf4 shift f4
sf5 shift f5
sf6 shift f6
sf7 shift f7
sf8 shift f8
sf9 shift f9
sf10 shift f10
sf11 shift f11
sf12 shift f12
af1 alt f1
af2 alt f2
af3 alt f3
af4 alt f4
af5 alt f5
af6 alt f6
af7 alt f7
af8 alt f8
af9 alt f9
af10 alt f10
af11 alt f11
af12 alt f12
custom keyvalue (16-bit) in hex (scancode/ascii), like: 0x011b
Example:
Command Description
getkey 10 esc 10 sec. timeout with Escape key
getkey wait for keypress

[ Top ]
goto
Syntax: goto <label>
Lets assume you have this file called "DE.CMD":
; de.cmd example file
:start
print 123
goto start


This batch file would loop forever (useless example!)
[ Top ]
help
Syntax: help <command> (or ?)
Displays help about <command>
[ Top ]
keyval
Syntax: keyval
Prints the (hex) value of the last getkey

[ Top ]
loadsegm
Syntax: loadsegm <xxxx>
Set the load segment to <xxxx> (hex)
Example:
Command Description
loadsegm 2000 Load the image at 2000h:0000h

[ Top ]
onkey
Syntax: onkey <key> <command>
Checks if <key> has been pressed. If so <command> is executed.

[ Top ]
print
Syntax: print <message>
Prints the string <message> to the screen at current cursor position.
Example:
Command Description
print Testing Prints "Testing" to the screen
print Prints a "blank" line

[ Top ]
quit
Syntax: quit
When in a batchfile, stops batch processing.

[ Top ]
readtest
Syntax: readtest
Tests the CD by reading all blocks in the volume
[ Top ]
reboot
Syntax: reboot
Reboots the system (warmboot)
[ Top ]
run
Syntax: run <file>
Runs (emulates) an image.
Example:
Command Description
run elboot.img Emulates a floppy image and boot it
run w2ksect.dat Load "w2ksect.dat" and run it

[ Top ]
test
Syntax: test
This command is for development only
It is used for testing new commands...
Do not use it!
[ Top ]
type
Syntax: type (or cat) <file>
Displays the contents of text files.
Example:
Command Description
type readme.txt Displays the content of readme.txt file

[ Top ]
ver
Syntax: ver
Displays the diskem1x.bin version
[ Top ]
回复

使用道具 举报

25#
发表于 2002-6-21 12:40:29 | 只看该作者

從頭問起,用mkcmenu怎麽寫?

custom keyvalue (16-bit) in hex (scancode/ascii), like: 0x011b
怎么知道哪个键对应哪个hex值呢?
还有,上下箭头怎么打出来的?
回复

使用道具 举报

26#
发表于 2002-6-21 17:39:38 | 只看该作者

從頭問起,用mkcmenu怎麽寫?

ascii的hex值以前在论坛上贴出来过的,要是找不到用google搜索一下看。
上下箭头,本身是扩展ascii码的一部分,如果写在diskemu0.txt里面会被mkcmenu.exe当成汉字,只能在diskemu0.cmd里面修改。
建议算好位置,先用某个符号,如AAAA在diskemu0.txt里面填充,然后用磁盘编辑程序替换diskemu0.cmd里的AAAA。
回复

使用道具 举报

27#
发表于 2002-6-22 21:04:24 | 只看该作者

從頭問起,用mkcmenu怎麽寫?

不错!!!
回复

使用道具 举报

28#
发表于 2002-11-26 15:03:02 | 只看该作者

從頭問起,用mkcmenu怎麽寫?

我是新手,可不可以给我几个例子,最好加上注释,谢谢,我的E是:lin1234ds@163.com
回复

使用道具 举报

29#
发表于 2002-11-26 20:49:39 | 只看该作者

從頭問起,用mkcmenu怎麽寫?

老兄,能不能给个中文的?
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|捐助支持|无忧启动 ( 闽ICP备05002490号-1 )

闽公网安备 35020302032614号

GMT+8, 2025-10-18 04:33

Powered by Discuz! X3.3

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表