Why does InternetExplorer Object become unresponsive?


I am attempting to login to a password protected site. I'm using the InternetExplorer Object in VBScript. Error lies after oIE.readystate value is read one time - that is, in my loop, it reads the oIE.readystate value one time, but upon the second time oIE.readystate value is attempting to be read, I get a "800A01CE" runtime error, stating "The remote server machine does not exist or is unavailable:'oIE.readystate'"

This code worked fine in IE6; my company implimented new AD policy (not sure how/if that affects this at all) and we are now using IE7. Im not sure if IE7 is somehow blocking the process after oIE.readystate. Any suggestions are greatly appreciated.

<br />Notation: "-->" indicates that I am writing commentary about the output of the process directly after that particular line of code executes.

set oIe=wscript.createobject("InternetExplorer.Application", "IE_") oIe.navigate "www.google.com" do while oIe.readystate<>4 msgbox "oIE readystate: " & oIE.readystate ''#-->gets here one time and outputs "oIE readstate: 0" wscript.sleep 1000 msgbox "oIE readystate: " & oIE.readystate ''#-->errors out. loop msgbox "outside of oIE readystate: " & oIE.readystate ''#--->never gets here.


It might be the call to MsgBox that's fouling it up. Doing a MsgBox changes the focus from IE to the script interpreter, which might make IE paranoid that it's being hijacked or something. Change them to

WScript.Echo "oIE readystate: " & oIE.ReadyState

And run it from the command line using cscript myscript.vbs instead.


  • JTDS module under WildFly (JBoss)
  • onsubmit event not working for asynchronous form submit
  • why the html5 geolocation fails to get results?
  • Android Launcher application compilation on Eclipse
  • How to create a watchpoint for a local variable in Eclipse CDT?
  • phpunit selenium usage
  • HttpWebRequest Server Unavailable 503 probleme
  • bookdown Error 'CTeX fontset `mac' is unavailable in current mode.' when using output
  • How to handle Service unavailable scenarios with Jersey REST
  • jQuery UI Autocomplete with scrollbar z-index help
  • Parse AJAX resposne in HTML using Javascript
  • Hosting WCF service on IIS (The resource cannot be found)
  • Spring Security 3.1.3 @EnableWebSecurity
  • Javascript get plain text from server
  • Write “NOT IN” in Doctrine Query Language
  • Where can I get runkit DLL extensions for PHP 5.3+?
  • How to prevent cross domain issues by proxying in IIS?
  • IIS 7.5 404 Error for .PDF files
  • Encrypting credit card details using AngularJS in Braintree
  • Autohotkey script running program with command line arguments
  • Implicit joins and Where in Doctrine - how?
  • Button text different than value submitted in query string
  • ADO and msqli connections very slow
  • Xcode 4 NSLog Macro link in Xcode 3
  • javaw.exe and eclipse startup problems
  • Sony Xperia Z Tablet not found by adb
  • How to recover from a Spring Social ExpiredAuthorizationException
  • Volusion's generic SQL folder, functionality
  • How can I estimate amount of memory left with calling System.gc()?
  • Function pointer “assignment from incompatible pointer type” only when using vararg ellipsis
  • log4net write single file for each call to log.info
  • Hits per day in Google Big Query
  • How do you join a server to an Active Directory (domain)?
  • coudnt use logback because of log4j
  • How to CLICK on IE download dialog box i.e.(Open, Save, Save As…)
  • Exception on Android 4.0 `android.os.StrictMode$AndroidBlockGuardPolicy.onNetwork(StrictMode)`
  • File not found error Google Drive API
  • Qt: Run a script BEFORE make
  • How can I remove ASP.NET Designer.cs files?
  • java string with new operator and a literal