|
-
Dec 29th, 2002, 06:34 AM
#1
Thread Starter
Fanatic Member
Simulating keypress
How can I simulate a keypress so that GetAsyncKeyState think I've pressed a key when I actually haven't?
Never argue with fools, they will only drag you down to their level, and beat you with experience.
Q: How do you tell an experienced hacker from a novice?
A: The latter thinks there's 1000 bytes in a kilobyte, while the former is sure there's 1024 meters in a kilometer
-
Dec 29th, 2002, 07:00 AM
#2
Guru
Check out the keybd_event and the SendInput functions.
-
Dec 29th, 2002, 05:40 PM
#3
Thread Starter
Fanatic Member
Using
Code:
keybd_event(VK_END, 0, 0, 0);
keybd_event(VK_END, 0, KEYEVENTF_KEYUP, 0);
works like a charm, thank you!
Never argue with fools, they will only drag you down to their level, and beat you with experience.
Q: How do you tell an experienced hacker from a novice?
A: The latter thinks there's 1000 bytes in a kilobyte, while the former is sure there's 1024 meters in a kilometer
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|