Sign in to follow this  

hot keys

This topic is 4357 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites

This topic is 4357 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this