Sign in to follow this  
Followers 0

Include Error.au3

1 post in this topic

I don't know if anyone else has anything like this, but I thought I would share what I've created for my scripts. I took the support feedback from how to keep autoit.error messages from popping up and store them to the Event Viewer. Only draw back is I'm a vbs scripter by nature, and the event log uses wscript to write to the log. So in the Application log you'll see events from WSH with the error message in it. Anyway, here's the include script. Feel free to modify, change, whatever.

Here's what you'll have to put at the top of your scripts to get this to work.

#include <Error.au3>

Global $onerror
$onerror = ObjEvent("AutoIt.Error", "_onerror")

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