how to make the mouse cursor move??

how to create a random mouse cursor-mover??
please help
Who is Participating?
RONSLOWConnect With a Mentor Commented:
use mouse_event
like this...

int x = ... whatever;
int y = ... whatever;

This will move the mouse to the given screen location.

If you want truly random movement, use rand() function and use SystemParametersInfo to get the size of the screen etc so you know the range of mouse positions available.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.