armansiu
asked on
how to make the mouse cursor move??
how to create a random mouse cursor-mover??
please help
please help
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
int x = ... whatever;
int y = ... whatever;
mouse_event(MOUSEEVENTF_AB
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.