Skip to content

Instantly share code, notes, and snippets.

@skihero
Created August 8, 2012 14:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save skihero/3295354 to your computer and use it in GitHub Desktop.
Save skihero/3295354 to your computer and use it in GitHub Desktop.
Play google basketball doodle
import pyatspi
import time
time.sleep(5)
count=0
for i in range (1, 10000) :
pyatspi.Registry.generateKeyboardEvent(65, None, pyatspi.KEY_PRESSRELEASE)
count=count+1
if count < 33:
time.sleep(0.5107)
else:
time.sleep(0.6)
print count
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment