Moves the cursor to the specified screen coordinates. If the new coordinates are not within the screen rectangle set by the most recent ClipCursor function call, the system automatically adjusts the coordinates so that the cursor stays within the rectangle.
Syntax
BOOL SetCursorPos( int X,
int Y
);
Parameters
X
[in] Specifies the new x-coordinate of the cursor, in screen coordinates.
Y
[in] Specifies the new y-coordinate of the cursor, in screen coordinates.
Return Value
Returns nonzero if successful or zero otherwise. To get extended error information, call GetLastError.