JJ
2021-11-06 10:45:05 UTC
The documentation states that it's for associating a hotkey to the
(launched) application. Presumably, for activating the application window,
as stated in the WM_SETHOTKEY documentation.
But the given hotkey never work and has no effect even though the
SEE_MASK_HOTKEY flag is already specified. I've already tried it by running
executing NOTEPAD.EXE with VK_F12 hotkey and with/without the
HOTKEYF_CONTROL flag.
Is that what dwHotkey is supposed to be for? Cause I've never seen an
article covering such feature. i.e. a hotkey to activate the window of an
executed (specific) application. Or the application itself - just like the
hotkey field of a program shortcut file. Also, the executor application
never does receive any SC_HOTKEY code from a WM_SYSCOMMAND window message -
assuming that the dwHotkey is a shortcut for the RegisterHotkey() API
function.
If it's not, what's the purpose of it, and how to use it? Or is it that,
it's applicable for the desktop process only?
(launched) application. Presumably, for activating the application window,
as stated in the WM_SETHOTKEY documentation.
But the given hotkey never work and has no effect even though the
SEE_MASK_HOTKEY flag is already specified. I've already tried it by running
executing NOTEPAD.EXE with VK_F12 hotkey and with/without the
HOTKEYF_CONTROL flag.
Is that what dwHotkey is supposed to be for? Cause I've never seen an
article covering such feature. i.e. a hotkey to activate the window of an
executed (specific) application. Or the application itself - just like the
hotkey field of a program shortcut file. Also, the executor application
never does receive any SC_HOTKEY code from a WM_SYSCOMMAND window message -
assuming that the dwHotkey is a shortcut for the RegisterHotkey() API
function.
If it's not, what's the purpose of it, and how to use it? Or is it that,
it's applicable for the desktop process only?