RJK said:
After playing with my UPS, I can see entries in the system log with a
yellow triangle, (where I've been switching the mains power off and on),
...is there any way to get these pop out in system tray, or appear on the
destop as they appear ?
TIA
regards, Richard
You could monitor the Event Viewer by itself by saving the code
below in your Startup folder as "Monitor Event Viewer.vbs".
const EventNo = "'7035'"
Set objWMISrv = GetObject("winmgmts:{(Security)}\\.\root\cimv2")
Set colMonitoredEvents = objWMISrv.ExecNotificationQuery _
("Select * from __InstanceCreationEvent Where " _
& "TargetInstance ISA 'Win32_NTLogEvent' " _
& "and TargetInstance.EventCode = " & EventNo)
Do
Set objLatestEvent = colMonitoredEvents.NextEvent
MsgBox objLatestEvent.TargetInstance.Message, 0, _
"Event Viewer Notification"
Loop
The code would run in the background at all times. You
need to replace the number "7035" with the event number
you wish to monitor. Leave the double and single quotes
as they are!