Jump to content

Recommended Posts

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
Posted

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.

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
  • Recently Browsing   0 members

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