Typically event logs created in autoit Have a long message before actually getting to the point, this is the Eventvwr trying to read the message file dll.
Using the attahced DLL and include file you can create nice clean events with the name of your application.
AutoItEventMsg.zip 2.47K
1094 downloads#include "_CustomEventLog.au3" $MyEventName = "AutoIt" $EventLog = _SetLog($MyEventName,"AutoIteventmsg.dll") If NOT @error then _RegisterEvent($EventLog, $SUCCESS, $App_Started, @ScriptName) _RegisterEvent($EventLog, $INFORMATION, $App_OK, "Just confirming this app is OK") _RegisterEvent($EventLog, $ERROR, $App_Error, "This app is not feeling very well" & @crlf & "Can someone call a doctor") _RegisterEvent($EventLog, $WARNING, $App_Warning, "There is no crap in this event log") _RegisterEvent($EventLog, $INFORMATION, $App_Information, "Nothing to see here") _RegisterEvent($EventLog, $INFORMATION, $App_Free, "This is my Free string" & @crlf & "with nothing at the begining") _RegisterEvent($EventLog, $SUCCESS, $App_Stopped, @ScriptName) EndIf ;or using the normal AutoIt includes $EventLog = _SetLog($MyEventName,"AutoIteventmsg.dll") Global $aData[1]=[0] $hEventLog = _EventLog__RegisterSource("",$EventLog) _EventLog__Report($hEventLog, $INFORMATION, "None", $App_Information, "","Another message without the crap", $aData) _EventLog__Close ($hEventLog)
Edit: Added some more examples
Edit2: Updated the Dll with version info and other stuff!
Edited by ChrisL, 13 June 2008 - 08:52 AM.






