Sign in to follow this  
Followers 0
lionfaggot

_IELodWait() occasionally never loads

6 posts in this topic

so, i got this bot yeah? and it goes fine for a while but occasionally it seems like ieloadwait never triggers so the script just hangs forcing me to either f5 and reload the page in ie (at which point the script usually continues) or until i restart the script completely. seriously perplexing issue. is this a bug in wininet? or is there something i can do to remedy this?

Share this post


Link to post
Share on other sites



What do you mean by "bot"? Can you please elaborate? What does your script do?


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2017-04-18 - Version 1.4.8.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2017-02-27 - Version 1.3.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites

well, it just automates a set of forms. the script works. just occasionally ieloadwait never finishes. upon reading further into the help file i found a function to set the load timeout. this seems to be working now. thanks anyway

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

the default timeout should be 5 min (300000ms), so even if you leave it blank it should timeout after that much time. However, it happened to me too that it didn't time out at all with the default value

edit: in http://www.autoitscript.com/autoit3/docs/libfunctions/_IELoadWaitTimeout.htm a zero is missing in the Remarks section

Edited by Kammamuri

Share this post


Link to post
Share on other sites

im gonna be straight up, in some ways wininet is an alright library, but honestly? microsoft did a pretty sloppy job of putting it together. for instance, with _IEFormElementRadioSelect and _IEFormElementCheckBoxSelect. now note, both of these form elements work pretty much the same for the most part. so right. why with ie.au3 do i have different parameters for these two functions. i can understand the two are different object types but the same problem remains, they should have the same set of parameters as theyre pretty much the same thing

Share this post


Link to post
Share on other sites

i mean you can click the forms by their object names. which achieves the same result for both. still, wininet is kind of a perplexing library in some ways. been going through the UDF and getting to know way more than i needed about wininet

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  
Followers 0