robotgo icon indicating copy to clipboard operation
robotgo copied to clipboard

The 'move' method's 'displayId' parameter

Open werct opened this issue 2 years ago • 3 comments

I want to manipulate the mouse on a specific monitor, including its position. I found this parameter in the 'move' function, but it doesn't seem to work or be processed. Am I missing something?

version: github.com/go-vgo/robotgo v1.0.0-rc1

b01dc38c91e046cccc152134f6f3ec1

werct avatar Jul 11 '23 12:07 werct

Came to check here for the same reason. I really need this functionality but I think I will need to look outside of robotgo to get it.

drgrib avatar Jul 26 '24 17:07 drgrib

In the meantime, you actually can use robotgo to do this. You just have to manually figure out the mouse position with something like:

robotgo.Move(1000, 2500)

I.e. keep increasing the numbers in the direction your cursor needs to go until it gets there. Not foolproof as a functional displayId would be but can work if you always know the positions in your display setup.

drgrib avatar Jul 26 '24 18:07 drgrib

robotgo.Move(x, y+1080)

Naist4869 avatar Jun 17 '25 00:06 Naist4869