hot keys

Started by
1 comment, last by mirza101 18 years, 3 months ago
hi, for handling with keyboard i use RegisterHotKey(); and for retrieveing text i catch WM_CHAR the problem is when i associate key 'b' for e.g. as a hot key and after that i go in text retrieve mode and retrieve text but when i press 'b' key it acts as hot key and i don't get any information of 'b' being pressed in WM_CHAR, also i use WM_CHAR before WM_HOTKEY how can i solve this
Advertisement
If it's for regular input handling, you really shouldn't be using RegisterHotKey, since it's system wide. Try WM_KEYDOWN and WM_KEYUP instead. With RegisterHotKey, the WM_CHAR message will never arrive for the b key (for ANY program in the system), because it's caught by the system before it gets that far.
thanks man

This topic is closed to new replies.

Advertisement