RegisterHotKey Ctrl+Alt+F1
-
I want to use the hotkey combination of CTRL+ALT+F1, ...F2, ...F3 but although in my application I register these hotkeys thus: ... ::OnInitDialog() ... RegisterHotKey( GetSafeHwnd(), ID_HELP_CONTENTS, MOD_CONTROL | MOD_ALT, VK_F1 ); ... I deregister the hotkeys in the destructor as well. and I am capturing the message WM_HOTKEY these hotkeys do not work! I have registered other hotkeys just fine, and even if I change the above to capture say CTRL+ALT+B that works fine. Do I need to capture the key combination CTRL+ALT+F1 in a different way?
-
I want to use the hotkey combination of CTRL+ALT+F1, ...F2, ...F3 but although in my application I register these hotkeys thus: ... ::OnInitDialog() ... RegisterHotKey( GetSafeHwnd(), ID_HELP_CONTENTS, MOD_CONTROL | MOD_ALT, VK_F1 ); ... I deregister the hotkeys in the destructor as well. and I am capturing the message WM_HOTKEY these hotkeys do not work! I have registered other hotkeys just fine, and even if I change the above to capture say CTRL+ALT+B that works fine. Do I need to capture the key combination CTRL+ALT+F1 in a different way?
Andy H wrote:
I am capturing the message WM_HOTKEY these hotkeys do not work! I have registered other hotkeys just fine, and even if I change the above to capture say CTRL+ALT+B that works fine. Do I need to capture the key combination CTRL+ALT+F1 in a different way?
What does
GetLastError
say? Or use@err,h
r in the debugger and debug through to find out what happens when you callRegisterHotKey
. On my machine on pressingCtrl + Alt + F1
it pops up windows help dialog.
Nibu thomas A Developer Code must be written to be read, not by the compiler, but by another human being. http:\\nibuthomas.wordpress.com
-
Andy H wrote:
I am capturing the message WM_HOTKEY these hotkeys do not work! I have registered other hotkeys just fine, and even if I change the above to capture say CTRL+ALT+B that works fine. Do I need to capture the key combination CTRL+ALT+F1 in a different way?
What does
GetLastError
say? Or use@err,h
r in the debugger and debug through to find out what happens when you callRegisterHotKey
. On my machine on pressingCtrl + Alt + F1
it pops up windows help dialog.
Nibu thomas A Developer Code must be written to be read, not by the compiler, but by another human being. http:\\nibuthomas.wordpress.com
-
Andy H wrote:
I am capturing the message WM_HOTKEY these hotkeys do not work! I have registered other hotkeys just fine, and even if I change the above to capture say CTRL+ALT+B that works fine. Do I need to capture the key combination CTRL+ALT+F1 in a different way?
What does
GetLastError
say? Or use@err,h
r in the debugger and debug through to find out what happens when you callRegisterHotKey
. On my machine on pressingCtrl + Alt + F1
it pops up windows help dialog.
Nibu thomas A Developer Code must be written to be read, not by the compiler, but by another human being. http:\\nibuthomas.wordpress.com
-
Is it possible to hook into an existing hotkey combination, without having to go down to the WinMain?
Andy H wrote:
Is it possible to hook into an existing hotkey combination
This[^] should help. Second question is yours. Let me tell you that it's quite annoying to override an existing hotkey, imagine somebody doing the to your hotkey, be polite and choose another one. :)
Andy H wrote:
without having to go down to the WinMain
I didn't get you. :~
Nibu thomas A Developer Code must be written to be read, not by the compiler, but by another human being. http:\\nibuthomas.wordpress.com
-
Andy H wrote:
Is it possible to hook into an existing hotkey combination
This[^] should help. Second question is yours. Let me tell you that it's quite annoying to override an existing hotkey, imagine somebody doing the to your hotkey, be polite and choose another one. :)
Andy H wrote:
without having to go down to the WinMain
I didn't get you. :~
Nibu thomas A Developer Code must be written to be read, not by the compiler, but by another human being. http:\\nibuthomas.wordpress.com