ReimuNotMoe / ydotool

Generic command-line automation tool (no X!)
GNU Affero General Public License v3.0
1.52k stars 82 forks source link

Scrolling is not working now #246

Closed snowlue closed 4 months ago

snowlue commented 4 months ago
pavel@snowlue-laptop:~$ ydotool mousemove -w -- 0 1
ydotool: invalid option -- 'w'
Not a valid option

Usage: ydotool [OPTION] <cmd> <args>
Options:
  -h, --help                 Display this help and exit
  -V, --version              Show version information
Available commands:
  click
  mousemove
  type
  key
  debug
  bakers
  stdin
Use environment variable YDOTOOL_SOCKET to specify daemon socket.

I use guide from #151, but got an error that -w is invalid option. Looks like something was broken in last version. And it seems that it is with argument parsing in mousemove, because I see usage for ydotool, but not ydotool mousemove. Could you check please and help me with it?

snowlue commented 4 months ago

Btw the docs shows me that option in a list. So I really confused...

pavel@snowlue-laptop:~$ ydotool mousemove
Usage: mousemove [OPTION]... [-x <xpos> -y <ypos>] [-- <xpos> <ypos>]
Move mouse pointer or wheel.

Options:
  -w, --wheel                Move mouse wheel relatively
  -a, --absolute             Use absolute position, not applicable to wheel
  -x, --xpos                 X position
  -y, --ypos                 Y position
  -h, --help                 Display this help and exit

You need to disable mouse speed acceleration for correct absolute movement.
snowlue commented 4 months ago

Oh, sorry me, I saw that somebody has issued that before in #245.