Created
June 20, 2023 04:34
-
-
Save insaneyilin/ea1fd4e81e18893f01125ac6d85a947d to your computer and use it in GitHub Desktop.
mouse click repeatedly
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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