How can I simulate a keypress so that GetAsyncKeyState think I've pressed a key when I actually haven't?
Printable View
How can I simulate a keypress so that GetAsyncKeyState think I've pressed a key when I actually haven't?
Check out the keybd_event and the SendInput functions.
Usingworks like a charm, thank you!Code:keybd_event(VK_END, 0, 0, 0);
keybd_event(VK_END, 0, KEYEVENTF_KEYUP, 0);