Skip to content

Instantly share code, notes, and snippets.

@AnthonyBriggs
Created October 31, 2014 11:03
Show Gist options
  • Save AnthonyBriggs/78e3840ece0dcce2a249 to your computer and use it in GitHub Desktop.
Save AnthonyBriggs/78e3840ece0dcce2a249 to your computer and use it in GitHub Desktop.
Useful xmacro script for *clicker games
#!/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