1
當我關閉Windows資源管理器時,如何停止腳本運行?這是我的代碼。VBScript:關閉Windows資源管理器時停止腳本
Dim i
CreateObject("Wscript.Shell").Run """website1.com""", 0, False
Wscript.Sleep 40000
CreateObject("Wscript.Shell").Run """website2.com""", 0, False
Wscript.Sleep 40000
For i=1 to 10
Set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.AppActivate "Internet Explorer"
WshShell.SendKeys "{F5}"
Wscript.Sleep 1000
WshShell.SendKeys "^{TAB}"
Wscript.Sleep 40000
Next