lucassklp/Desktop.Robot

MouseMove/SetCursorPos should have int, not uint

GuruGurra opened this issue · 0 comments

According to Microsoft documentation, SetCursorPos is defined as:

BOOL SetCursorPos(
[in] int X,
[in] int Y
);

Since MouseMove and your P/Invoke signature for SetCursorPos are using uint, it is impossible to set negative positions.