Jump to content

Recommended Posts

Posted

Auto3lib has an include for managing the event log, I'm a newb to programming and the example script tells me little. I'm trying my make a simple script that will scan the event logs and email me error events. Could someone help me do this using Auto3lib, or anything else?

Thanks

Ivan

Posted

Auto3lib has an include for managing the event log, I'm a newb to programming and the example script tells me little. I'm trying my make a simple script that will scan the event logs and email me error events. Could someone help me do this using Auto3lib, or anything else?

Thanks

Ivan

The example script provided with Auto3Lib prints out 50 events from the Application event log. All you need to do is remove this line:

if $iCount > 50 then $iCount = 50

and it will print out every event in the log. You simply need to replace the code that prints the event log to the console with code that sends you an email. There's tons of examples on this forum on how to do that. If you have further questions about Auto3Lib, please post them to the Auto3Lib thread in the Examples forum for the quickest response.

Auto3Lib: A library of over 1200 functions for AutoIt

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...