chosenname Posted August 6, 2009 Posted August 6, 2009 (edited) Hello, I'd like to start AutoIt scripts from remote, which means in case of an error, I don't want to see a MessageBox, but get the Output to the Command Line I started it from. I tried catching errors using $oMyError = ObjEvent("AutoIt.Error","ErrHandler"); Func ErrHandler() ConsoleWrite("Error: " & $oMyError.description) Endfunc But if I generate a syntax error, I get the MessageBox. Am I doing something wrong? Is it impossible to catch syntax errors in that way? Edited August 6, 2009 by chosenname
Authenticity Posted August 6, 2009 Posted August 6, 2009 you can run it via AU3Check first to see if there exist any errors in the source. AutoIt.Error is only for COM-based errors. Don't know how to get the return value of the check using a remote session.
chosenname Posted August 6, 2009 Author Posted August 6, 2009 you can run it via AU3Check first to see if there exist any errors in the source.No, I can't. I'm using UNIX.
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