Created
October 31, 2014 11:03
-
-
Save AnthonyBriggs/78e3840ece0dcce2a249 to your computer and use it in GitHub Desktop.
Useful xmacro script for *clicker games
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 | |
# sudo apt-get install xmacro | |
# Run this in a window alongside your browser, | |
# then you have 2 seconds to quickly mouse over | |
sleep 2; | |
for (( ;; )) | |
do | |
echo "ButtonPress 1 ButtonRelease 1 | |
ButtonPress 1 ButtonRelease 1 | |
ButtonPress 1 ButtonRelease 1 | |
ButtonPress 1 ButtonRelease 1 | |
ButtonPress 1 ButtonRelease 1 " | xmacroplay -d 100 "$DISPLAY" # set -d lower for faster clicking | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment