Jump to content

RAISE / CATCH


Recommended Posts

You must have seen this question a thousand times, but:

Can you implement a RAISE/CATCH @error mechanism in vanilla AutoIT?

For example, if any source statement generates an error, ie. @error = 1, then I want it to raise an event that is caught by a custom error handler.

Noticed this construct in the HELP:

ObjEvent ( "AutoIt.Error" [, "function name"] )

Am I on the right track here -- can someone show me a relevant example?

Link to comment
Share on other sites

You must have seen this question a thousand times, but:

Can you implement a RAISE/CATCH @error mechanism in vanilla AutoIT?

For example, if any source statement generates an error, ie. @error = 1, then I want it to raise an event that is caught by a custom error handler.

Noticed this construct in the HELP:

ObjEvent ( "AutoIt.Error" [, "function name"] )

Am I on the right track here -- can someone show me a relevant example?

I think it is only for COM error events.

look:

The second format is used for COM Error Handling. If any COM error

occurs, the given function is being called.

.

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...