Is it possible to click a spot or press a key?

Hi everyone!

Is there any instruction or command in C++ to "make the computer" click a determinate spot or press a determinate key?

Is it also possible to tell the program to wait a determinate amount ot time until executing next action?

Thanks a lot guys!
closed account (o3hC5Di1)
Hi there,

I would suggest you to use http://www.autohotkey.com/ .
It would be quite hard to write this as a learners project because you would need to hook your code into the operating system.

So in the spirit of not reinventing the wheel, autohotkey will probably serve your purposes.

Hope that helps.

All the best,
NwN
Thanks for such a fast reply!

Indeed your idea was great, I am incredibly happy that you came through the post :D
Topic archived. No new replies allowed.