moving mouse pointer in c++

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
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
Can I put that code into my console program or does it have to be a winapi program?
Topic archived. No new replies allowed.