Button event

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
you can't do that using c++ and its standard librarys alone. you'll probully need to use the winAPI or some other library...
Ah oke, any pointers on how to get the ball rolling with that?
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
Topic archived. No new replies allowed.