Skip to content

Instantly share code, notes, and snippets.

@boj
Created January 5, 2011 01:00
Show Gist options
  • Save boj/765753 to your computer and use it in GitHub Desktop.
Save boj/765753 to your computer and use it in GitHub Desktop.
simple script to keep you from logging out
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