HyperVista Posted January 31, 2008 Share Posted January 31, 2008 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 More sharing options...
erezlevi Posted January 31, 2008 Share Posted January 31, 2008 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now