virtual key input c++ code example
Example: sending keystrokes in c
keybd_event(0x56, 0, 0, 0); //Press down the Key
keybd_event(0x56, 0, KEYEVENTF_KEYUP, 0); //Release the Key
keybd_event(0x56, 0, 0, 0); //Press down the Key
keybd_event(0x56, 0, KEYEVENTF_KEYUP, 0); //Release the Key