GetLastError liefert mir für alle Hotkeys außer den ersten:
Fehler: 1004
"ERROR_INVALID_FLAGS
1004 (0x3EC)
Invalid flags."
https://msdn.microsoft.com/en-us/lib...=vs.85%29.aspx
BOOL
WINAPI RegisterHotKey(
_In_opt_ HWND hWnd,
_In_ int id,
_In_ UINT fsModifiers,
_In_ UINT vk
);
fsModifiers [in]
Type: UINT
The keys that must be pressed in combination with the key specified by the uVirtKey parameter in order to generate the WM_HOTKEY message. The fsModifiers parameter can be a
combination of the following values.
Value Meaning
MOD_ALT
0x0001
Either ALT key must be held down.
MOD_CONTROL
0x0002
Either CTRL key must be held down.
MOD_NOREPEAT
0x4000
Changes the hotkey behavior so that the keyboard auto-repeat does not yield multiple hotkey notifications.
Windows Vista: This flag is not supported.
MOD_SHIFT
0x0004
Either SHIFT key must be held down.
MOD_WIN
0x0008
Either WINDOWS key was held down. These keys are labeled with the Windows logo. Keyboard shortcuts that involve the WINDOWS key are reserved for use by the operating system.