By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,972 Members | 901 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,972 IT Pros & Developers. It's quick & easy.

Keyboard hook for alpha-numeric key

P: n/a
When I try to hook a non letter key like left arrow (37) all is OK.

If (Hookstruct.vkCode = 37) Or (Hookstruct.vkCode = 83) And
CBool(Hookstruct.flags) Then

But, for example, the hook for the letter "s" key (83) does not work.

Mysteriously, the "s" starts hooking properly after I set and continue
through a break point. I can even then remove the breakpoint and the "s"
continues to hook OK as long as I have the debug session going.

Got any ideas as to what I need to do to get the keyboard hook to work
consistently for alpha-numeric keys?



Nov 21 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.