Last active
August 29, 2015 13:57
-
-
Save ethanmick/9469272 to your computer and use it in GitHub Desktop.
A script to play 2048 on Chrome.
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
activate application "Google Chrome" | |
delay 1.0 -- time to release modifier keys if the script is run with a keyboard shortcut | |
tell application "System Events" | |
repeat 100 times | |
set rand to (random number from 123 to 126) | |
key code rand | |
delay 0.2 | |
end repeat | |
end tell |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment