2 years ago

#49686

test-img

veraf

How do I detect a windows event from a google chat message with python?

I can use the below code to get google calendar events from chrome:

h = win32evtlog.OpenEventLog(None, "System")
flags = win32evtlog.EVENTLOG_BACKWARDS_READ|win32evtlog.EVENTLOG_SEQUENTIAL_READ
for record in win32evtlog.ReadEventLog(h, flags, 0):
    if record.EventID == 10016:
        print("it's a google calendar event (or something similar)!")

I can't figure out how to detect an event that's generated by google chat running in chrome. I've tried log sources other than system and using an event viewer to try to find the event, but I can't seem to find it even though it shows up in action center (chat icon in very bottom right of windows taskbar).

How can I find the event? Or is it possible there is no windows event but it still shows in action center?

python

windows

google-chrome

pywin32

win32com

0 Answers

Your Answer

Accepted video resources