RegisterHotKey isn't the only method that can be used to register a hotkey. Application can post WM_SETHOTKEY message to a window to assign a hotkey to it, but this is a different kind of hotkeys than hotkeys registered by using the mentioned system call.
Explore the topic and check if hotkeys registered with WM_SETHOTKEY are:
global,
blocking other combinations,
worth taking into account in HKD.
According to Microsoft documentation, the hotkey brings up the associated window into a foreground, but only when the message is passed to DefWindowProc. What happens when it is serviced by the application instead, and never makes it to the default window procedure?
RegisterHotKey isn't the only method that can be used to register a hotkey. Application can post WM_SETHOTKEY message to a window to assign a hotkey to it, but this is a different kind of hotkeys than hotkeys registered by using the mentioned system call.
Explore the topic and check if hotkeys registered with
WM_SETHOTKEY
are:According to Microsoft documentation, the hotkey brings up the associated window into a foreground, but only when the message is passed to
DefWindowProc
. What happens when it is serviced by the application instead, and never makes it to the default window procedure?Links
https://learn.microsoft.com/en-us/windows/win32/inputdev/wm-sethotkey https://learn.microsoft.com/en-us/windows/win32/menurc/wm-syscommand