Skip to content

Commit

Permalink
Copied doc of HookEvent to make it easier to understand what event we…
Browse files Browse the repository at this point in the history
… capture.
  • Loading branch information
blep committed Sep 7, 2023
1 parent 3ae7874 commit ed9b7ca
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions win32_window_monitor/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@
# them in the log output. Pick from
# http://msdn.microsoft.com/en-us/library/windows/desktop/dd318066(v=vs.85).aspx
EVENT_TYPES = {
HookEvent.SYSTEM_FOREGROUND: "Foreground",
HookEvent.OBJECT_FOCUS: "Focus",
HookEvent.OBJECT_SHOW: "Show",
HookEvent.SYSTEM_DIALOGSTART: "Dialog",
HookEvent.SYSTEM_CAPTURESTART: "Capture",
HookEvent.SYSTEM_MINIMIZEEND: "UnMinimize"
HookEvent.SYSTEM_FOREGROUND: "Foreground", # The foreground window has changed.
HookEvent.OBJECT_FOCUS: "Focus", # An object has received the keyboard focus.
HookEvent.OBJECT_SHOW: "Show", # A hidden object is shown.
HookEvent.SYSTEM_DIALOGSTART: "Dialog", # A dialog box has been displayed.
HookEvent.SYSTEM_CAPTURESTART: "Capture", # A window has received mouse capture.
HookEvent.SYSTEM_MINIMIZEEND: "UnMinimize" # A window object is about to be restored.
}


Expand Down

0 comments on commit ed9b7ca

Please sign in to comment.