ILoveAutoIt Posted June 3, 2008 Share Posted June 3, 2008 Yeah so I have this script that will run for a while but then after maybe 20-25 minutes I get 2 error windows (identical) that say "AutoIt Error" something about line 316 of IE.au3 and a problem with IENavigate What are some things that could cause this error? Thanks P.S. I love autoit Link to comment Share on other sites More sharing options...
Airwolf Posted June 3, 2008 Share Posted June 3, 2008 Yeah so I have this script that will run for a while but then after maybe 20-25 minutes I get 2 error windows (identical) that say "AutoIt Error" something about line 316 of IE.au3 and a problem with IENavigateWhat are some things that could cause this error?ThanksP.S. I love autoit Mind posting the code so we can find the problem? Certifications: A+, Network+, Security+, Linux+, LPIC-1, MCSA | Languages: AutoIt, C, SQL, .NETBooks: AutoIt v3: Your Quick Guide - $7.99 - O'Reilly Media - September 2007-------->[u]AutoIt v3 Development - newbie to g33k[/u] - Coming Soon - Fate Publishing - Spring 2013UDF Libraries: SkypeCOM UDF Library | ADUC Computers OU Cleanup | Find PixelChecksumExamples: Skype COM Examples - Skype4COMLib Examples converted from VBS to AutoIt Link to comment Share on other sites More sharing options...
PsaltyDS Posted June 3, 2008 Share Posted June 3, 2008 Yeah so I have this script that will run for a while but then after maybe 20-25 minutes I get 2 error windows (identical) that say "AutoIt Error" something about line 316 of IE.au3 and a problem with IENavigate What are some things that could cause this error? Line 316 is here: Func _IENavigate(ByRef $o_object, $s_Url, $f_wait = 1) ; $o_object.navigate($s_Url); Line 316 ; EndFunc ;==>_IENavigate Probably something has invalidated your $oIE object. Next time you see it post the exact error. Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law Link to comment Share on other sites More sharing options...
Airwolf Posted June 3, 2008 Share Posted June 3, 2008 Line 316 is here: Func _IENavigate(ByRef $o_object, $s_Url, $f_wait = 1) ; $o_object.navigate($s_Url); Line 316 ; EndFunc ;==>_IENavigate Probably something has invalidated your $oIE object. Next time you see it post the exact error. Whoops! I read his post incorrectly. It seems I've skipped over the IE.au3 part. Still, the OP's code wouldn't hurt. Certifications: A+, Network+, Security+, Linux+, LPIC-1, MCSA | Languages: AutoIt, C, SQL, .NETBooks: AutoIt v3: Your Quick Guide - $7.99 - O'Reilly Media - September 2007-------->[u]AutoIt v3 Development - newbie to g33k[/u] - Coming Soon - Fate Publishing - Spring 2013UDF Libraries: SkypeCOM UDF Library | ADUC Computers OU Cleanup | Find PixelChecksumExamples: Skype COM Examples - Skype4COMLib Examples converted from VBS to AutoIt Link to comment Share on other sites More sharing options...
ILoveAutoIt Posted June 4, 2008 Author Share Posted June 4, 2008 (edited) The code is proprietary Could it be that the computer lost connection to the internet? P.S. running the code now, will post exact error when it occurs. Edited June 4, 2008 by ILoveAutoIt Link to comment Share on other sites More sharing options...
Richard Robertson Posted June 4, 2008 Share Posted June 4, 2008 That really depends on the error. I doubt it has anything to do with an active connection or not, as that would be a silent error, not a fatal one. Link to comment Share on other sites More sharing options...
ILoveAutoIt Posted June 4, 2008 Author Share Posted June 4, 2008 Weird, since I posted this I've been running the script for hours and it hasnt come up. I must have changed something that fixed it Link to comment Share on other sites More sharing options...
ILoveAutoIt Posted June 5, 2008 Author Share Posted June 5, 2008 Here it is... ------------------------------------------ AutoIt Error Line 316 (File "C:\Program Files\AutoIt3\Include\IE.au3") $o_object.navigate($o_Url) $o_object.navigate($o_Url)^ERROR Error: The requested action with this object has failed. ------------------------------------------ Link to comment Share on other sites More sharing options...
ILoveAutoIt Posted June 5, 2008 Author Share Posted June 5, 2008 Anyone? Link to comment Share on other sites More sharing options...
Richard Robertson Posted June 5, 2008 Share Posted June 5, 2008 Your object has become invalidated. Either something released the object or it crashed. Link to comment Share on other sites More sharing options...
PsaltyDS Posted June 5, 2008 Share Posted June 5, 2008 Here it is...------------------------------------------AutoIt ErrorLine 316 (File "C:\Program Files\AutoIt3\Include\IE.au3")$o_object.navigate($o_Url)$o_object.navigate($o_Url)^ERRORError: The requested action with this object has failed.------------------------------------------I don't think $o_object has failed, or it would say something like "Variable is not an object". The variable $o_Url might be changing and becoming invalid. You could add some temporary logging to track that.You also might be hitting a timing issue where the browser is busy and can't be bothered with a .navigate command. You might put _IELoadWait($oIE) just before the _IENavigate(). Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law Link to comment Share on other sites More sharing options...
ILoveAutoIt Posted June 6, 2008 Author Share Posted June 6, 2008 Ill give IELoadWait a try since I know the connection being used can slow down occasionally. Link to comment Share on other sites More sharing options...
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