回复 2# CrLf - Dim objShell,ret,wshshell
- set wshshell=createobject("wscript.shell")
- Set objShell = CreateObject("WSCript.Shell")
-
- t=timer
- do while timer-t<WScript.Arguments(1)
- ret = objShell.Appactivate(WScript.Arguments(0))
- If ret Then
- wshshell.sendkeys "{tab}"
- wscript.quit (10)
- end if
- loop
复制代码 我这样为什么没有效果,我第二个参数是10 |