Welcome! Log In Create A New Profile

Advanced

Key Trapping

Posted by David Egan 
David Egan
Key Trapping
March 27, 2008 11:57PM
Hi
I have an event on a table which is fired on WM_KEYDOWN so that we can trap certain keys. This has worked well for single keys but I now need to trap Shift + Key also. In my key trapping procedure I added CASE VK_SHIFT + VK_NEXT but this never gets executed as the shift key fires the event on its own. How do I get it to trap the combination?
Thanks

David
Stefan Bentvelsen
Re: Key Trapping
March 29, 2008 11:21AM
Hi David,

for that I use an event for trapping the VK_NEXT and in the procedure of that event I check with KeyPressed() if the Shift-key is down. Thtat works well for me.

David Egan
Re: Key Trapping
March 29, 2008 09:17PM
Thanks Stefan, that works nicely

Cheers

David
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: