Simulating a key press with c++
Hi, I am looking to write a simple C program that can simulate a button on the keyboard being pressed.
Something simple, like when you execute the program, it simulates the "Z" key being pressed once, waits 4 seconds, simulates another key press, waits another 4 seconds, etc.
If anyone knows how to do this, I would greatly appriciate it.
|