Click here to Skip to main content
15,881,803 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I want to be able to write a code to enter the alphabets in my keyboard programmatically. I was able to do a lot of things using the keybd_event() and all of them worked but i dont see any option of how i can enters letters such C/A/X using the keybd_event. Is there a way to do that?
Please help me out. Thanks
Posted
Comments
enhzflep 9-Sep-14 1:41am    
You should use SendInput instead. As for how to do it - you need to send two events. First you send a key-pressed event, next, you send a key-released event.
MSDN: SendInput
[no name] 9-Sep-14 10:20am    
press ?? "press" what ??

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900