Button event

Jul 11, 2011 at 3:34am
How to do a button event?

I want to have a program that presses a button repetedly for example:

when i fire up the program it should spam 1 key like "E" over and over until the program is shut off.

What im trying to say is that i wanna simulate a actual keyboard click.

Best regards
Melander
Last edited on Jul 11, 2011 at 3:59am
Jul 11, 2011 at 4:13am
you can't do that using c++ and its standard librarys alone. you'll probully need to use the winAPI or some other library...
Jul 11, 2011 at 4:15am
Ah oke, any pointers on how to get the ball rolling with that?
Jul 11, 2011 at 4:22am
oh, heres a thread simular to yours: http://www.cplusplus.com/forum/unices/9203/

stuff like this is annoying to do in c++, cause c++ has to portable and therefor can not have these things built in.
Last edited on Jul 11, 2011 at 5:17am
Topic archived. No new replies allowed.