Mouse move to specific coordiantes

I'm trying to move the mouse to a specific point as in the example below.

mouse.Move(0,0);

This code keeps the mouse where it is, but the mouse must move to the top left of the screen. How can I do that?
I can send the location of my mouse to the arduino via serial communication.
My screen size is 1920x1080.
I'm using Arduino Leonardo as mouse

I have successfully used the "MouseTo" library for this purpose.

There are also some alternatives listed in that project's readme here. I didn't try any of those because the "MouseTo" library worked fine but maybe worth taking a look in case one of them is better for your specific application.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.