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