Fritterandwaste Posted November 27, 2022 Posted November 27, 2022 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
Solution water Posted November 27, 2022 Solution Posted November 27, 2022 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 2024-07-28 - Version 1.6.3.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 (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
Fritterandwaste Posted November 27, 2022 Author Posted November 27, 2022 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
water Posted November 27, 2022 Posted November 27, 2022 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 2024-07-28 - Version 1.6.3.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 (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
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