Jump to content
Sign in to follow this  
Quinch

Fail silently?

Recommended Posts

Quinch

Quick check - is it possible to avoid the error message window {in SciTe or a compiled eye} if the script hits a critical error? Better still, is it possible to have it execute a function, such as writing an error log etc.?

Share this post


Link to post
Share on other sites
Juvigy

Yes , Check for "error handlers" in the help file.

For example:

$oMyError = ObjEvent("AutoIt.Error","MyErrFunc")

This is ab object error handler registration. MyErrFunc is the name of the function that will be executed.

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  

×