Jump to content

_IELoadWaitTimeout - default 5 minutes or 30 seconds?


Go to solution Solved by water,

Recommended Posts

Hi

I have been having problems with scripts apparently hanging for long periods when navigating between web pages and was considering adjusting the _IELoadWaitTimeout value. However, the documentation says:

"The initial timeout value is 30000 ms (5 minutes)."

 

But surely 30000ms is 30 x 1000ms = ie 30 seconds? Which is it please? Or am I missing something?

Thanks

Link to post
Share on other sites
  • Solution

I think you dropped a 0 somewhere ;)
According to the help file it is 300000 not just 30000:

Quote

Period of time to wait before exiting function (default = 300000 ms aka 5 min)

This is 5 * 60 * 1000 (minutes * seconds * milliseconds)

My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download
Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki
PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki
Task Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki

Standard UDFs:
Excel - Example Scripts - Wiki
Word - Wiki

Tutorials:
ADO - Wiki
WebDriver - Wiki

 

Link to post
Share on other sites

ok thank you. The helpfile (.chm) I am looking at still defintely says 30000. I copied and pasted the text. Perhaps it is an old help file but I only downloaded i a couple of months ago. I do now see tha the online info says the same as your quote. Thanks again. Thought I was losing my sanity. Answer: 5  minutes!

Larger extract:

Quote

Parameters

$iTimeout [optional] retrieve or specify the number of milliseconds
    0 or positive integer sets timeout to this value
    -1 = (Default) returns the current timeout value (stored in global variable $__IELoadWaitTimeout)

Return Value

Returns the current timeout value if $iTimeout = -1, else returns 1.

Remarks

There is no way to completely disable the Timeout value.
You can functionally do this however by setting it to a very large positive integer.
The initial timeout value is 30000 ms (5 minutes).

Related

 

Link to post
Share on other sites

I checked the online documentation for AutoIt 3.3.16.1
The CHM file of AutoIt 3.3.16.0 shows the correct value as well.
Which version of AutoIt do you run?

My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download
Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki
PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki
Task Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki

Standard UDFs:
Excel - Example Scripts - Wiki
Word - Wiki

Tutorials:
ADO - Wiki
WebDriver - Wiki

 

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
  • Recently Browsing   0 members

    No registered users viewing this page.

  • Similar Content

    • By WoodGrain
      Hi All,
      I've tried to create a script to browse to a web page in IE, but it only works for some sites, I've tried to simplify the script as much as possible, hoping you can point me in the right direction - thanks.
      This one going to Google does work:
      #include <IE.au3> $oIE = _IECreate("https://www.google.com.au/", 0, 1, 1) _IELoadWait($oIE) _IEQuit($oIE) But this one going to OneDrive opens the IE page, but fails immediately returning the errors, and the IE window is not closed:
      --> IE.au3 T3.0-2 Error from function _IELoadWait, $_IESTATUS_ClientDisconnected (-2147023174, Browser has been deleted prior to operation.)
      --> IE.au3 T3.0-2 Error from function _IELoadWait, $_IESTATUS_InvalidObjectType ()
      --> IE.au3 T3.0-2 Error from function _IEQuit, $_IESTATUS_InvalidObjectType
      #include <IE.au3> $oIE = _IECreate("https://abccorp-my.sharepoint.com/", 0, 1, 1) _IELoadWait($oIE) _IEQuit($oIE) Even if I put a sleep timer in for 10 seconds after the _IECreate it still doesn't work
      Thanks all!
    • By ur
      I have kept below line to wait for IE to load the site completely and continue.
      _IELoadWait($oIE)
       
      But, the code is continuing without waiting for it and I my execution is failing as the elements are not loaded completely.

       
      Any suggestions for alternate code to wait for the browser to load completely?
       
    • By ileandros
      Hello,

      I have this simple script which automates google translate.

      #include <IE.au3> $oIE = _IECreate("http://translate.google.com/#en|fr|") $oForm = _IEFormGetObjByName($oIE, "text_form") $oText = _IEFormElementGetObjByName($oForm, "text") _IEFormElementSetValue($oText, "Hello") Sleep(3000) $id = _IEGetObjById($oIE, "result_box") $oText1 = _IEPropertyGet($id, "innertext") MsgBox(0,"Translate",$oText1)
      What i want to do it to remove the Sleep(3000) that there is in the script. But removing it the script doesnt works because the message box appears before geting the value of the innertext....
      Is there a way to remove or replace the sleep time??? I tried _IELoadWait() but it doesnt work.
      Any tips??

      Edit: Testing for the $oText1.value just add some more pointless lines to the script and leeds at adding sleep seconds until value is true...
    • By 6105
      When i try to wait loading of __IENavigate, that never wait

      Reproducer:


      #include <IE.au3> $oIE = _IECreate ('autoitscript.com') _IELoadWait($oIE) For $i=0 To 10 Step +1 __IENavigate($oIE, 'autoitscript.com', 1, 0x800) _IELoadWait($oIE) Next Sleep(5000) _IEQuit($oIE)

      Also i try to use $f_wait, 3th Parrameter of __IENavigate, but that also not work


      __IENavigate($o_object, $s_Url, $f_wait, $i_flags)

      Thanks for any tips
×
×
  • Create New...