how to sent a keypress to another program

hi,
I need to control another program, and how to simulate to sent a keypress or mouse to another windows program. Thanks for any help.
Try autohotkey it's designed for this purpose. If you prefer to use C++, you can download the source code.
Topic archived. No new replies allowed.