JoshE Posted April 10, 2008 Share Posted April 10, 2008 I keep getting an error returned saying: Line -1: Error: The requested action with this object has failed. This is when I go to start the script. Like I said I am very new and I am just wondering the basic reasons or what this error means. Link to comment Share on other sites More sharing options...
Mojo Posted April 10, 2008 Share Posted April 10, 2008 I keep getting an error returned saying:Line -1:Error: The requested action with this object has failed.This is when I go to start the script. Like I said I am very new and I am just wondering the basic reasons or what this error means.posting some code would help us help you You can fool some of the people all of the time, and all of the people some of the time, but you can not fool all of the people all of the time. Abraham Lincoln - http://www.ae911truth.org/ - http://www.freedocumentaries.org/ Link to comment Share on other sites More sharing options...
monoceres Posted April 10, 2008 Share Posted April 10, 2008 It means that your script is compiled and that it doesn't use an object very well. Broken link? PM me and I'll send you the file! Link to comment Share on other sites More sharing options...
JoshE Posted April 10, 2008 Author Share Posted April 10, 2008 posting some code would help us help you The script is rather long. I wouldnt know where to start posting. I am just looking for some basic reason for that error to be returned. Link to comment Share on other sites More sharing options...
PsaltyDS Posted April 10, 2008 Share Posted April 10, 2008 The script is rather long. I wouldnt know where to start posting. I am just looking for some basic reason for that error to be returned.Add a COM error handler, as in the help file under OBJ/COM reference, and run your script from SciTE so you can see any error messages that go to the console. 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...
JoshE Posted April 10, 2008 Author Share Posted April 10, 2008 The only thing I did is decompile and compile the code back and I get this error. Before I decompiled and compiled I never had this error. Link to comment Share on other sites More sharing options...
JoshE Posted April 10, 2008 Author Share Posted April 10, 2008 If I run the script instead of the .exe I get the error: Line 13750 Return $OIE.document.parentwindow.Eval("SignOn") Return $OIE.document.parentwindow.Eval("SignOn")^ERROR Error: The requested action with this object has failed. Link to comment Share on other sites More sharing options...
someone Posted April 10, 2008 Share Posted April 10, 2008 As an FYI... the reason you see line -1 when compiled is because there aren't line numbers in a compiled script. As for your error... hmm not sure exactly what is failing with your object. As PSalty said, you can add COM error handling that will help you to figure it out. If you use IE functions internal to autoit they already have that COM error handling. Can you show more of your script then just the line with the error? While ProcessExists('Andrews bad day.exe') BlockInput(1) SoundPlay('Music.wav') SoundSetWaveVolume('Louder') WEnd Link to comment Share on other sites More sharing options...
PsaltyDS Posted April 10, 2008 Share Posted April 10, 2008 The only thing I did is decompile and compile the code back and I get this error. Before I decompiled and compiled I never had this error.Decompiled...? That means it was originally compiled with an old version, and now you are probably re-compiling with a newer one. Have you tried testing-running it from SciTE under a current version? 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...
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