robotgo icon indicating copy to clipboard operation
robotgo copied to clipboard

How can I use robotgo to simulate mouse forward and backward?

Open PekingSpades opened this issue 9 months ago • 3 comments

From my understanding, robotgo supports the first three items, but not the fourth and fifth.

https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/button

Image

PekingSpades avatar Mar 26 '25 08:03 PekingSpades

This might help - some mice (logitech?) apparently map wheelLeft and wheelRight to buttons 4 and 5...I've remapped mine so can't test this...

// Toggle toggle the mouse, support button: // // "left", "center", "right", // "wheelDown", "wheelUp", "wheelLeft", "wheelRight"

From - https://github.com/go-vgo/robotgo/blob/v0.110.7/robotgo.go#L724

andrewfstratton avatar Apr 14 '25 10:04 andrewfstratton

This might help - some mice (logitech?) apparently map wheelLeft and wheelRight to buttons 4 and 5...I've remapped mine so can't test this...

// Toggle toggle the mouse, support button: // // "left", "center", "right", // "wheelDown", "wheelUp", "wheelLeft", "wheelRight"

From - https://github.com/go-vgo/robotgo/blob/v0.110.7/robotgo.go#L724

thx. I will test it.

PekingSpades avatar Apr 14 '25 11:04 PekingSpades