ame1011 Posted November 15, 2005 Share Posted November 15, 2005 it seems that at random times IE.au3 spits out this error. While ($o_object.document.readyState <> "complete") and ($o_object.document.readyState <> 4) While ($o_object.document^ ERROR this code, of course determine's if the page is loaded or not by waiting for the 4 'ready' messages in the bottom left. Anyone got any ideas? code: $oIE = _IECreate() _IENavigate ($oIE, "http://www.gmail.com") [font="Impact"] I always thought dogs laid eggs, and I learned something today. [/font] Link to comment Share on other sites More sharing options...
Valuater Posted November 15, 2005 Share Posted November 15, 2005 Dale would know for sure... but i think this happened to me and i put a sleep() in the script and it was fine hope that helps 8) Link to comment Share on other sites More sharing options...
DaleHohm Posted November 15, 2005 Share Posted November 15, 2005 (edited) Valuator provides a valid suggestion. I've heard a small number of complaints about this. It has typically been on a slow or overloaded system. I am hoping that I have addressed this in the next release. It is a simple change to _IELoadWait(). If you'd like to test it, find _IELoadWait() and change the lineWhile ($o_object.document.readyState <> "complete") and ($o_object.document.readyState <> 4)toWhile ($o_object.readyState <> "complete") and ($o_object.readyState <> 4)This checks the readystate of the browser rather than its embedded document (which aparently sometimes does not get fully instantiated before the readystate check is attempted). I have not yet tested this with frames - if it causes trouble there there will need to be some more code to handle all situations.Daleit seems that at random times IE.au3 spits out this error.While ($o_object.document.readyState <> "complete") and ($o_object.document.readyState <> 4) While ($o_object.document^ ERRORthis code, of course determine's if the page is loaded or not by waiting for the 4 'ready' messages in the bottom left.Anyone got any ideas?code:$oIE = _IECreate() _IENavigate ($oIE, "http://www.gmail.com") Edited November 15, 2005 by DaleHohm Free Internet Tools: DebugBar, AutoIt IE Builder, HTTP UDF, MODIV2, IE Developer Toolbar, IEDocMon, Fiddler, HTML Validator, WGet, curl MSDN docs: InternetExplorer Object, Document Object, Overviews and Tutorials, DHTML Objects, DHTML Events, WinHttpRequest, XmlHttpRequest, Cross-Frame Scripting, Office object model Automate input type=file (Related) Alternative to _IECreateEmbedded? better: _IECreatePseudoEmbedded Better Better? IE.au3 issues with Vista - Workarounds SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y Doesn't work needs to be ripped out of the troubleshooting lexicon. It means that what you tried did not produce the results you expected. It begs the questions 1) what did you try?, 2) what did you expect? and 3) what happened instead? Reproducer: a small (the smallest?) piece of stand-alone code that demonstrates your trouble Link to comment Share on other sites More sharing options...
ame1011 Posted November 15, 2005 Author Share Posted November 15, 2005 <3 Dale [font="Impact"] I always thought dogs laid eggs, and I learned something today. [/font] Link to comment Share on other sites More sharing options...
Tobias Posted February 21, 2006 Share Posted February 21, 2006 I also get this error message at times and the sleep function seems to make it go away. I'm not a script master but is there a way to change the code so that the sleep function is used if the error should appear just to be sure that the script doesn't stop? Regards, Tobias Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now