Jump to content

Include Error.au3


Recommended Posts

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")
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

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...