Way of the messages and effect on other applications
-
Hi everybody, I see how the messages travels down in the own application. But a special key combination (Ctrl+Shift+R) should launch a tool into my application, but it opens a functionality of another application ... How can i route the message that it will directly traited by my own application? Big thanks for any help :)
-
Hi everybody, I see how the messages travels down in the own application. But a special key combination (Ctrl+Shift+R) should launch a tool into my application, but it opens a functionality of another application ... How can i route the message that it will directly traited by my own application? Big thanks for any help :)
Use RegisterHotKey(HWND hWnd,int id,UINT fsModifiers,UINT vk) to register global hotkeys. Then handle the message WM_HOTKEY to do what you want. When you don't need your hotkey anymore, call UnregisterHotKey(HWND hWnd,int id);
rotter
-
Hi everybody, I see how the messages travels down in the own application. But a special key combination (Ctrl+Shift+R) should launch a tool into my application, but it opens a functionality of another application ... How can i route the message that it will directly traited by my own application? Big thanks for any help :)
Are you using an accelerator table to catch the Ctrl+Shift+R key? If no then that's where I would start.
AliR. Visual C++ MVP