Sign in to follow this  
Followers 0
svkhtn

An error raised from IE.au3

3 posts in this topic

Hi,

I built a BOT for a website. It runs fine at first. However, after running for a while, the program raised an error (see below) and didn't run properly.

Could you please explain what this error means? Where should I look for to find a solution to this?

Many thanks!

--> COM Error Encountered in ***.au3

----> $IEComErrorScriptline = 353

----> $IEComErrorNumberHex = 80020009

----> $IEComErrorNumber = -2147352567

----> $IEComErrorWinDescription = Unspecified error

----> $IEComErrorDescription =

----> $IEComErrorSource = htmlfile

----> $IEComErrorHelpFile = C:\WINDOWS\System32\mshtml.hlp

----> $IEComErrorHelpContext = 0

----> $IEComErrorLastDllError = 0

Share this post


Link to post
Share on other sites



Could you please explain what this error means?

Yep, you encountered an Unspecified error initiated at line 353 of your script.

Your web browser works asynchonously from your AutoIt script and so many things can happen and so many different paths can be taken that it is impossible for IE.au3 to anticipate or trap them.

The good news is that _IEErrorHandlerRegister() allows COM errors to be trapped instead of abruptly aborting your script. You need to check @error at appropriate places and take corrective action when errors occur.

As you should see, this is a generic error message and you'll need to study your code and code flow to understand what is happening, why and what to do about it.

Dale


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 your explanation. I also tracked down earlier that the problem happened at that line.

I sorted out already. Actually, I grabbed an object of a webpage and played with the innerText of that object. At first, it runs fine. However, after running for a while I am not sure while that object doesn't work properly. Finally, I decided to update the object every time I want to play with the innerText. The problem was sorted.

Many thanks.

Yep, you encountered an Unspecified error initiated at line 353 of your script.

Your web browser works asynchonously from your AutoIt script and so many things can happen and so many different paths can be taken that it is impossible for IE.au3 to anticipate or trap them.

The good news is that _IEErrorHandlerRegister() allows COM errors to be trapped instead of abruptly aborting your script. You need to check @error at appropriate places and take corrective action when errors occur.

As you should see, this is a generic error message and you'll need to study your code and code flow to understand what is happening, why and what to do about it.

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