C Simulating Keys Simplified!
Tutorials Shared by the Internet Community
Total Hits - 32902
Total Votes - 99 votes
Vote Up - 43 votes
Vote Down - 56 votes
Domain - www.pixel2life.com
Category - C and C++/General Development
Submitted By - Shekhar
Submitted on - 2008-04-16 02:23:40
The function "keybd_event" takes 4 parameters, by looking at msdn (http://msdn2.microsoft.com/en-us/library/ms646304(VS.85).aspx) we can see what these parameters are:
to simulate a key press we only we need to supply the function with the first parameter, which is a Virtual Key Code (will be referred to as VKC from now on). Here is a link to the full list of VKC's: http://msdn2.microsoft.com/en-us/library/ms645540(VS.85).aspx More detail...