Sign in to follow this  
Followers 0
chosenname

No GUI on error

3 posts in this topic

#1 ·  Posted (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 by chosenname

Share this post


Link to post
Share on other sites



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.

Share this post


Link to post
Share on other sites

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.

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