//move shift, by current position. public static void MoveShift(int shiftX, int shiftY) { Win32API.POINT p = new Win32API.POINT(); Win32API.GetCursorPos(ref p); MoveTo(p.x + shiftX, p.y + shiftY); }
public static Point GetMousePos() { Win32API.POINT p = new Win32API.POINT(); Win32API.GetCursorPos(ref p); return new Point(p.x, p.y); }