Skip to main content

GetCursorPos

Return the position of the mouse cursor.

Point GetCursorPos();

Parameters

None

Example

Point p = GetCursorPos(); p.Offset(20,50);
// move the X position by 10 and the Y value by 50
Mouse.DoubleLeftClick(p); // double left click at new position