- 帖子
- 6
- 积分
- 183
- 技术
- 0
- 捐助
- 0
- 注册时间
- 2008-12-30
|
[求助]关于VBS 循环操作的方法
Dim WshShell
Set WshShell=WScript.CreateObject("WScript.Shell")
WshShell.Run "abc.exe"
WScript.Sleep 2000
WshShell.AppActivate "登录1"
WshShell.SendKeys "%p"
WScript.Sleep 200
WshShell.SendKeys "s"
WshShell.SendKeys "{TAB}"
WScript.Sleep 200
WshShell.SendKeys "admin"
WScript.Sleep 200
WshShell.SendKeys "{TAB}"
WshShell.SendKeys "admin"
WshShell.SendKeys "{TAB}"
WshShell.SendKeys "192.168.5.200"
WshShell.SendKeys "{ENTER}"
WScript.Sleep 7000
WshShell.SendKeys "%{F4}"
我这个我想让他们每30秒在运行一次该如何设置? |
|