|
@ -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!")); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|