Skip to content

Instantly share code, notes, and snippets.

@vedantk
Created October 14, 2011 04:43
Show Gist options
  • Save vedantk/1286268 to your computer and use it in GitHub Desktop.
Save vedantk/1286268 to your computer and use it in GitHub Desktop.
A script to escalate Poke Wars on Facebook
#!/bin/bash
# Vedant Kumar <vsk@berkeley.edu>
echo "Initializing..."
echo "You have 3 seconds to hover over your friend's cog menu."
sleep 3
eval $(xdotool getmouselocation --shell)
CMX=$X
CMY=$Y
echo "You have 5 seconds to hover over the Poke option in the cog menu."
sleep 5
eval $(xdotool getmouselocation --shell)
PBX=$X
PBY=$Y
echo "You have 5 seconds to hover over the Poke button."
sleep 5
eval $(xdotool getmouselocation --shell)
OBX=$X
OBY=$Y
echo "Entering autopoke loop..."
while true; do
xdotool mousemove $CMX $CMY
xdotool click 1
sleep 1
xdotool mousemove $PBX $PBY
xdotool click 1
sleep 3
xdotool mousemove $OBX $OBY
xdotool click 1
sleep 360
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment