0

Here is a code I have tried:

while sleep 3600; do xdotool mousemove xxx yyy click --repeat 30 --delay 60000 1; done
  • --clearmodifiers - reset active modifiers (alt, etc) while typing
  • --window WINDOW - specify a window to send click to
  • --repeat REPEATS - number of times times to click. Default is 1
  • --delay MILLISECONDS - delay in milliseconds between clicks.

    This has no effect if you do not use --repeat. Default is 100ms

So what I am looking for is 30 clicks each delayed by 60 seconds then for the whole process to start again in an hour. When I enter this into terminal flags are not recognized. --repeat nor --delay

1 Answers1

0

Your script looks mostly correct, but the --delay is in millseconds not seconds, and it appears this option actually controls the delay in between repeats. You can use sleep 60s instead to delay the initial click.

--delay MILLISECONDS
    Specify how long, in milliseconds, to delay between clicks. This option is not
    used if the --repeat flag is set to 1 (default).