From ed9b7caeff64c60a1f820ad0d88f720756d73428 Mon Sep 17 00:00:00 2001 From: Baptiste Lepilleur Date: Thu, 7 Sep 2023 08:04:39 +0200 Subject: [PATCH] Copied doc of HookEvent to make it easier to understand what event we capture. --- win32_window_monitor/main.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/win32_window_monitor/main.py b/win32_window_monitor/main.py index ce32424..cf2d6c7 100644 --- a/win32_window_monitor/main.py +++ b/win32_window_monitor/main.py @@ -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. }