Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I detect multiple keys being pressed? I have a hook.

Status
Not open for further replies.

Learner13

Technical User
Jun 18, 2004
1
GB
Greetings,

I am a newbie to programming and may just be missing some logic. I have a keyboard hook and I can record single key presses (the key code, key state up/down, and key time pressed). I can then playback the file to reproduce the input.
I want to be able to record multiple keys being pressed and released (not necessarily at the same time) for example: press three keys release one and then press an additional 2 keys so four in total held down. Then release all of the keys.
I have an array that holds the state of all of the keys. A structure to record, for each key press, the Direction (up/down), the key ID (vk_code) and the time (relative) pressed.

Any help or suggestions would be welcome.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top