Rem 按下a,b,c可以分别说不同的话。按下esc可以退出脚本。
KeyPress 13 1
KeyPress 13 1
Rem 等待按键
Delay 100
WaitKey Anjian
IfExpression Anjian=65
SayString 今天天气不错 ^_^ ,你按A干啥?
KeyPress 13 1
Goto 等待按键
EndIf
IfExpression Anjian=66
SayString 小样,我知道你按B了!
KeyPress 13 1
Goto 等待按键
EndIf
IfExpression Anjian=67
SayString 哈哈,你按的是C。
KeyPress 13 1
Goto 等待按键
EndIf
IfExpression Anjian=27
SayString 你按的是ESC,BYEBYE喽,脚本结束~
KeyPress 13 1
Goto 结束脚本
EndIf
SayString 你按的是啥?我不认识,我只认识ABC -_-...
KeyPress 13 1
Goto 等待按键
Rem 结束脚本
Delay 1000
MessageBox 脚本演示结束,最好的脚本永远是您自己制作的。 :-)
EndScript
==来自 紫苑花
欢迎光临 紫菀论坛 (http://bbs.szyin.com/) | Powered by Discuz! 7.1 |