Board logo

标题: [求助]关于VBS 循环操作的方法 [打印本页]

作者: apchy    时间: 2009-12-5 16:22     标题: [求助]关于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秒在运行一次该如何设置?
作者: slore    时间: 2009-12-5 16:38

do



WSH.Sleep 30*1000
loop




欢迎光临 批处理之家 (http://bathome.net./) Powered by Discuz! 7.2