Sign in to follow this  
Followers 0
Ranmaru

AutoIt Errors

6 posts in this topic

_IENavigate() fails randomly?

Posted Image

It works most of the time, but sometimes it fails and it appears quite randomly. ie. I could have my bot running for one day straight with no errors having it loop through the functions many times and then get this error. Usually it would only run for a few hours though.


Share this post


Link to post
Share on other sites



Too much code to know for sure, but I'd suggest an _IELoadWait($oIE) before your calls to _IENavigate() will take care of it. It is likely a timing issue where you are trying to navigate when the browser is already in the middle of a navigate or refresh operation.

Also, when debugging, I would highly recommend running from SciTe to get the benefit of special IE.au3 diagnostic console messages there.

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

Not sure what you mean exactly by "added a _IELoadWait() for the _IENavigate()"

I meant that you add it before the _IENavigate() And you have at least 2 of them.

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

#5 ·  Posted (edited)

You have;

Func Login()
    IENav("http://www.darkestofsins.net/login.php")

_IENavigate("http://www.darkestofsins.net/login.php")

Func fightMonster()
    IENav("http://www.darkestofsins.net/forest.php?area=forest")

_IENavigate("http://www.darkestofsins.net/forest.php?area=forest")

Func bankGold()
    showTip("Banking gold.", 0)
    IENav("http://www.darkestofsins.net/bank.php")

_IENavigate("http://www.darkestofsins.net/bank.php")

Func goFish()
    $fishCheck = getDate()
    showTip("Bot goes fish!", 0)
    While 1
        IENav("http://www.darkestofsins.net/fish.php")

_IENavigate("http://www.darkestofsins.net/fish.php")

ect....

Edited by Kogmedia

[font="Verdana"]Keith (Kogmedia)[/font]My ScriptQuick Search - Internet / Hard Drive Search

Share this post


Link to post
Share on other sites

You know that in the code you posted you have _IENavigate not only in your IENAV function but also here right?

For $link In $myLinks
        $linkURL = String($link.href)
        If StringInStr($linkURL, "fmarket.php?") Then
            _IENavigate($oIE, $linkURL)
            showTip("Fishies sold!", 0)
        EndIf
    Next

When I said you had 2 of them, I meant you had two occurances of _IENavigate.

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

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