moving mouse pointer in c++

Mar 26, 2012 at 10:50pm
How do I tell c++ to move the mouse in place x?

for example, I run a c++ program and the mouse moves to the top left corner of my screen.

How do I go about doing something like that?
Last edited on Mar 26, 2012 at 10:51pm
Mar 27, 2012 at 2:36am
the SendInput function can be used to simulate mouse movement and button clicks.
you can get much more detailed info on it here
http://forums.codeguru.com/showthread.php?t=377394
Last edited on Mar 27, 2012 at 2:37am
Apr 23, 2012 at 12:11am
Can I put that code into my console program or does it have to be a winapi program?
Topic archived. No new replies allowed.