Sign in to follow this  
Followers 0
HyperVista

RAISE / CATCH

2 posts in this topic

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?

Share this post


Link to post
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.

.

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