sibson / vncdotool

A command line VNC client and python library
Other
451 stars 120 forks source link

How to operate the mouse scroll wheel #279

Closed AppleHuang closed 8 months ago

AppleHuang commented 8 months ago

How to operate the mouse wheel? Can you provide a specific code example? Thank you.

pmhahn commented 8 months ago

Most of the times the mouse wheel maps to button 4 and 5, so you have to repeatedly use vncdotool click 4 and vncdotool click 5 to simulate one notch of the wheel:

$ vncdo --help
…
  click BUTTON          send a mouse BUTTON click