lucassklp / Desktop.Robot

A library used to control your mouse and keyboard programmatically in .NET Core
MIT License
141 stars 24 forks source link

MouseMove/SetCursorPos should have int, not uint #37

Closed GuruGurra closed 1 year ago

GuruGurra commented 1 year ago

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.