
| Quote: | |
|
CODE: [Copy to clipboard]根据你的要求,你只需要把notepad更改为e:\123.exe,然后发送回车键就行了,如果默认tab停留位不在next按纽上的话则需酌情发送tab键盘。With Wscript.CreateObject("Wscript.Shell")
.run "notepad" '运行记事本
Wscript.Sleep 500 '等待半秒
.SendKeys "D~" '按下D键及回车,~表示回车。
Wscript.Sleep 500
.SendKeys "~O~"
Wscript.Sleep 500
.SendKeys "~S"
End With
CODE: [Copy to clipboard]With Wscript.CreateObject("Wscript.Shell")
.run "notepad" '运行记事本
Wscript.Sleep 500 '等待半秒
.SendKeys "D~",5 '按下D键及回车,~表示回车。
Wscript.Sleep 500
.SendKeys "~O~"
Wscript.Sleep 10000
.AppActivate "无标题 - 记事本"
.SendKeys "~S"
End With
| 欢迎光临 中国DOS联盟论坛 (http://cndos.fam.cx/forum/) | Powered by Discuz! 2.5 |