Browse Source

send hotkey events to thread's event queue

main
Hendrik Langer 6 years ago
parent
commit
abba1c0889
  1. 4
      windows-snapshot-tool/src/main.cpp

4
windows-snapshot-tool/src/main.cpp

@ -69,8 +69,8 @@ int WINAPI WinMain (HINSTANCE hThisInstance,
/* register hotkey. 0x59 is 'y' so win+y or print * /* register hotkey. 0x59 is 'y' so win+y or print *
* see: https://docs.microsoft.com/de-de/windows/desktop/inputdev/virtual-key-codes */ * see: https://docs.microsoft.com/de-de/windows/desktop/inputdev/virtual-key-codes */
if (!RegisterHotKey(Hwnd, WM_HOTKEY_FREEZE, MOD_WIN, 0x59) if (!RegisterHotKey(NULL, WM_HOTKEY_FREEZE, MOD_WIN, 0x59)
|| !RegisterHotKey(Hwnd, WM_HOTKEY_FREEZE, 0, 0x2c)) { || !RegisterHotKey(NULL, WM_HOTKEY_FREEZE, 0, 0x2c)) {
FatalAppExit(0, TEXT("Couldn't register hotkey!")); FatalAppExit(0, TEXT("Couldn't register hotkey!"));
} }

Loading…
Cancel
Save