Archived

This topic is now archived and is closed to further replies.

MindRazor

Key input in windows

Recommended Posts

MindRazor    122
I want to read combinations with the control, alt and shift keys. I want to do this in the WM_KEYUP or WM_KEYDOWN events, but I don''t know how to extract this information from lParam and wParam. Thx in advance

Share this post


Link to post
Share on other sites
Bagpuss    122
wParam will be the actual Key that is pressed (it''s ASCII code anyway)

lParam is the ancilliary information, including if the key is already down, just been pressed, etc.

The F1 keys are VK_ (virtual keys, and I suspect that the ones you are after will be too.)

MSDN is your best bet for full info though.

Bp.

Share this post


Link to post
Share on other sites
MindRazor    122
Thx for the help. I had been looking all over MSDN to find the right function for the task, and you led me on the right track. I had to use GetAsyncKeyState(VK_CONTROL) for the test, but I figured it out at last.

Share this post


Link to post
Share on other sites