|
我制作了一个启动目录,在11行和22行文字显示有问题。
下面是我的脚本文件,没有采用图片菜单,图片和文字混合使用,在11行 [Windows] 最后的 显示跳行。22行那几个 ]]] 显示不完整,请 bradyzhu 看看。
===========================================
:entrypoint
delay 100ms
;显示启动画面,等待5秒。
:nologo
;设置背景模式
transparent on
;清屏
cls 0
;设置背景
backgroundimage pixel backlogo.bmp 0 0
setresolution 640 480 32
;设置调色板
;黑色
setdac 0 0x00 0x00 0x00
;红色
setdac 100 0xff 0x51 0x52
;深蓝
setdac 101 0x00 0x00 0xad
;蓝
setdac 103 0x00 0x00 0x66
setdac 255 0xff 0xff 0xff
forecolor 255
backcolor 0
;进度条显示参数
timerpos 20 27
timercolor 255 101
setdefault mainkey1
:start
cls 255
;绘制背景
repaint
drawimage pixel LOGO1.bmp 495 338
;设置进度条
processparam pixel 100 101 310 430 570 440
colorblock pixel 101 0 92 280 480
colorblock pixel 103 0 132 280 134
colorblock pixel 103 0 164 280 166
colorblock pixel 103 0 196 280 198
colorblock pixel 103 0 228 280 230
colorblock pixel 103 0 260 280 262
colorblock pixel 103 0 292 280 294
;显示主菜单
colorblock pixel 103 5 320 275 380
drawtext 2 21 255 "从第一硬盘启动[ESC] 退出[Q]]]]]
drawtext 2 22 255 "磁盘实用工具[B] 重起电脑[R]]]]]
drawtext 1 7 255 "[1] 安装Windows 2000 专业版
drawtext 1 9 255 "[2] 安装Windows 2000 专业版 SP2
drawtext 1 11 255 "[3] 安装Windows 2000 专业版 SP3
drawtext 1 13 255 "[4] 安装Windows 2000 服务器版
drawtext 1 15 255 "[5] 安装Windows 2000 服务器版 SP2
drawtext 1 17 255 "[6] 安装Windows 2000 服务器版 SP3
drawtext 1 27 255 " 等待60秒 还剩 秒
goto ~
:mainkey
onkey b goto wuyou
onkey r reboot
onkey q goto prompt
onkey B goto wuyou
onkey R reboot
onkey Q goto prompt
onkey esc boot 80
onkey 1 run W2PFSECT.DAT
onkey 2 run W2PASECT.DAT
onkey 3 run W2P3SECT.DAT
onkey 4 run A2SFSECT.DAT
onkey 5 run A2SASECT.DAT
onkey 6 run W2S3SECT.DAT
;检测到的按键不是所需的,继续等待
goto ~
;
:mainkey1
colorblock pixel 255 0 103 280 131
drawtext 1 7 101 "[1] 安装Windows 2000 专业版
;drawtext 1 11 255 "[3] 安装Windows 2000 专业版 SP3
drawtext 1 13 255 "[4] 安装Windows 2000 服务器版
drawtext 1 15 255 "[5] 安装Windows 2000 服务器版 SP2
colorblock pixel 101 0 135 280 163
drawtext 1 9 255 "[2] 安装Windows 2000 专业版 SP2
colorblock pixel 101 0 263 280 291
drawtext 1 17 255 "[6] 安装Windows 2000 服务器版 SP3
colorblock 255 39 16 79 20
drawtext 40 16 1 "安装Windows 2000 专业版
drawtext 40 18 100 "Enter 键开始安装, 等待20秒自动启动硬盘
getkey showtime showprocess 20 esc
onkey entr setkey 1
onkey up goto mainkey6
onkey down goto mainkey2
setdefault mainkey1
goto mainkey
;
:mainkey2
colorblock pixel 101 0 103 280 131
drawtext 1 7 255 "[1] 安装Windows 2000 专业版
colorblock pixel 255 0 135 280 163
drawtext 1 9 101 "[2] 安装Windows 2000 专业版 SP2
colorblock pixel 101 0 167 280 195
drawtext 1 11 255 "[3] 安装Windows 2000 专业版 SP3
colorblock 255 39 16 79 20
drawtext 40 16 1 "安装Windows 2000 专业版 集成SP2
drawtext 40 18 100 "Enter 键开始安装, 等待20秒自动启动硬盘
getkey showtime showprocess 20 esc
onkey entr setkey 2
onkey up goto mainkey1
onkey down goto mainkey3
setdefault mainkey2
goto mainkey
;
:mainkey3
colorblock pixel 101 0 135 280 163
drawtext 1 9 255 "[2] 安装Windows 2000 专业版 SP2
colorblock pixel 255 0 167 280 195
drawtext 1 11 101 "[3] 安装Windows 2000 专业版 SP3
colorblock pixel 101 0 199 280 227
drawtext 1 13 255 "[4] 安装Windows 2000 服务器版
colorblock 255 39 16 79 20
drawtext 40 16 1 "安装Windows 2000 专业版集成SP3
drawtext 40 18 100 "Enter 键开始安装, 等待20秒自动启动硬盘
getkey showtime showprocess 20 esc
onkey entr setkey 3
onkey up goto mainkey2
onkey down goto mainkey4
setdefault mainkey3
goto mainkey
;
:mainkey4
colorblock pixel 101 0 167 280 195
drawtext 1 11 255 "[3] 安装Windows 2000 专业版 SP3
colorblock pixel 255 0 199 280 227
drawtext 1 13 101 "[4] 安装Windows 2000 服务器版
colorblock pixel 101 0 231 280 259
drawtext 1 15 255 "[5] 安装Windows 2000 服务器版 SP2
colorblock 255 39 16 79 20
drawtext 40 16 1 "安装Windows 2000 服务器版
;drawtext 40 17 1 "需要输入联想的序列号
drawtext 40 18 100 "Enter 键开始安装, 等待20秒自动启动硬盘
getkey showtime showprocess 20 esc
onkey entr setkey 4
onkey up goto mainkey3
onkey down goto mainkey5
setdefault mainkey4
goto mainkey
;
:mainkey5
colorblock pixel 101 0 199 280 227
drawtext 1 13 255 "[4] 安装Windows 2000 服务器版
colorblock pixel 255 0 231 280 259
drawtext 1 15 101 "[5] 安装Windows 2000 服务器版 SP2
colorblock pixel 101 0 263 280 291
drawtext 1 17 255 "[6] 安装Windows 2000 服务器版 SP3
colorblock 255 39 16 79 20
drawtext 40 16 1 "安装Windows 2000 服务器版集成 SP2
drawtext 40 18 100 "Enter 键开始安装, 等待20秒自动启动硬盘
getkey showtime showprocess 20 esc
onkey entr setkey 5
onkey up goto mainkey4
onkey down goto mainkey6
setdefault mainkey5
goto mainkey
;
:mainkey6
colorblock pixel 101 0 231 280 259
drawtext 1 15 255 "[5] 安装Windows 2000 服务器版 SP2
colorblock pixel 255 0 263 280 291
drawtext 1 17 101 "[6] 安装Windows 2000 服务器版 SP3
colorblock pixel 101 0 103 280 131
drawtext 1 7 255 "[1] 安装Windows 2000 专业版
colorblock 255 39 16 79 20
drawtext 40 16 1 "安装Windows 2000 服务器版集成SP3
drawtext 40 18 100 "Enter 键开始安装, 等待20秒自动启动硬盘
getkey showtime showprocess 20 esc
onkey entr setkey 6
onkey up goto mainkey5
onkey down goto mainkey1
setdefault mainkey6
goto mainkey
;
:wuyou
cls
batch wytools.cmd nologo
;
:prompt
forecolor 255
backcolor 0
cd /
cls
quit
;
|
|