0

Web サイトにログインするスクリプトがあります。Windows XP の IE 8 では完全に動作しますが、Windows 7 で IE8 を使用して同じスクリプトを実行しようとすると、動作しません。

誰かがこの問題を解決できますか?

WScript.Quit Main
Function Main
 Set IE = WScript.CreateObject("InternetExplorer.Application", "IE_")
 IE.Visible = True
 IE.Navigate "URL"
 Wait IE
 IE.Document.form.[username].value = "" 'username
 IE.Document.form.[password].value = "" 'Password
 IE.Document.form.Submit()    
End Function   
Sub Wait(IE)    
 Do  
  WScript.Sleep 500       
 Loop While IE.ReadyState <> 4 OR IE.Busy
End SUb
Sub IE_OnQuit
 On Error Resume Next
 WScript.StdErr.WriteLine "IE closed before script finished."
 WScript.Quit
End Sub 
4

0 に答える 0