|
|
@ -93,9 +93,9 @@ int WINAPI WinMain (HINSTANCE hThisInstance, |
|
|
|
/*Initialize the NOTIFYICONDATA structure only once*/ |
|
|
|
InitNotifyIconData(); |
|
|
|
|
|
|
|
/* register hotkey. 0x59 is 'y' so win+y or print *
|
|
|
|
/* register hotkey. 0x58 is 'x' so alt+x or print *
|
|
|
|
* see: https://docs.microsoft.com/de-de/windows/desktop/inputdev/virtual-key-codes */
|
|
|
|
if (!RegisterHotKey(NULL, WM_HOTKEY_FREEZE, MOD_WIN, 0x59) |
|
|
|
if (!RegisterHotKey(NULL, WM_HOTKEY_FREEZE, MOD_ALT, 0x58) |
|
|
|
|| !RegisterHotKey(NULL, WM_HOTKEY_FREEZE, MOD_ALT, 0x2c)) { |
|
|
|
FatalAppExit(0, TEXT("Couldn't register hotkey!")); |
|
|
|
} |
|
|
|