Created
January 5, 2011 01:00
-
-
Save boj/765753 to your computer and use it in GitHub Desktop.
simple script to keep you from logging out
This file contains 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
tell application "World of Warcraft" | |
activate | |
end tell | |
tell application "System Events" | |
tell process "World of Warcraft" | |
repeat | |
set x to (random number from 1 to 2) | |
if x = 2 then | |
key down "a" | |
delay (random number from 0.1 to 1.0) * (random number from 0.0 to 1.0) | |
key up "a" | |
else | |
key down "d" | |
delay (random number from 0.1 to 1.0) * (random number from 0.0 to 1.0) | |
key up "d" | |
end if | |
delay (random number from 10 to 300) | |
end repeat | |
end tell | |
end tell |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment