Skip to content

Instantly share code, notes, and snippets.

@insaneyilin
Created June 20, 2023 04:34
Show Gist options
  • Save insaneyilin/ea1fd4e81e18893f01125ac6d85a947d to your computer and use it in GitHub Desktop.
Save insaneyilin/ea1fd4e81e18893f01125ac6d85a947d to your computer and use it in GitHub Desktop.
mouse click repeatedly
#!/bin/bash
while true
do
x=`xdotool getmouselocation | grep -oP '(?<=x:)\d+'`
y=`xdotool getmouselocation | grep -oP '(?<=y:)\d+'`
xdotool mousemove $x $y
xdotool click 1
sleep 1
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment