Jump to content

No GUI on error


Recommended Posts

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
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...