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!

keybd_event and alt+#

Status
Not open for further replies.

goodieng

Programmer
Apr 10, 2003
2
SI
Hi,

I want to simulate keyboard, so it will press alt+66 (it should show B):

keybd_event(VK_LMENU, 0, 0, 0);
keybd_event(VK_NUMPAD6, 0, 0, 0);
keybd_event(VK_NUMPAD6, 0, KEYEVENTF_KEYUP, 0);
keybd_event(VK_NUMPAD6, 0, 0, 0);
keybd_event(VK_NUMPAD6, 0, KEYEVENTF_KEYUP, 0);
keybd_event(VK_LMENU, 0, KEYEVENTF_KEYUP, 0);

what do I do wrong?

thanx
Boris
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top