Jump to content
Sign in to follow this  


Recommended Posts



Sorry but I have a minor problem on _IELoadWait() Time out. Below is the code I've used and the error that I've received. I still don't get it.

Basically here is what I'm trying to do:

1. I create IE

2. I set my very own timeout for IE, assuming that I had to use submit, not _IENavigate or _IECreate's Timeout parameter

3. Thus, I have to use _IELoadWait to wait for the form to submit

4. If the form was successful, but the page is taking more than 1 second to load, I will print out an error message.

By default, _IELoadWait's timeout is 300000 ms (5mins). But I want to shorten it, to 1 second (1 second is just applied in this example).

Note: I've done some searching and read the help files

$oIE = _IECreate("http://google.com", 0, 1, 0) ; Creates IE, redirecting to google.
_IELoadWait($oIE, 0, 1000)
If @error Then MsgBox(0, "", @extended)

This is what I received as warning:

IE.au3 V2.4-0 Warning from function _IELoadWait, $_IEStatus_LoadWaitTimeout

Any idea what's wrong with the timeout? Help are appreciated!



Share this post

Link to post
Share on other sites

It doesn't appear that anything is wrong. It is not an error, it is a warning simply telling you taht the timeout value was reached (should not be a surprise when it is set to one second).

If you want to suppress the message, use _IEErrorNotify.


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

Share this post

Link to post
Share on other sites

Thanks for the info, Dale.

Share this post

Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this