Created
October 22, 2013 20:43
-
-
Save aheadley/7107770 to your computer and use it in GitHub Desktop.
Spams the primary mouse click button for the given number of seconds, default is 75.
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 | |
RUNTIME=${1:-75} | |
start=$(date +%s) | |
while [ $(( $(date +%s) - $start )) -lt $RUNTIME ]; do | |
xdotool click --repeat 5 1 | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment