 from pymouse import PyMouse <EOL> import random , time <EOL> try : <EOL> from pymouse import PyMouseEvent <EOL> class event ( PyMouseEvent ) : <EOL> def move ( self , x , y ) : <EOL> print "<STR_LIT>" , x , y <EOL> def click ( self , x , y , button , press ) : <EOL> if press : <EOL> print "<STR_LIT>" , x , y , "<STR_LIT>" , button <EOL> else : <EOL> print "<STR_LIT>" , x , y , "<STR_LIT>" , button <EOL> e = event ( ) <EOL> e . start ( ) <EOL> except ImportError : <EOL> print "<STR_LIT>" <EOL> m = PyMouse ( ) <EOL> try : <EOL> size = m . screen_size ( ) <EOL> print "<STR_LIT>" % ( str ( size ) ) <EOL> pos = ( random . randint ( <NUM_LIT:0> , size [ <NUM_LIT:0> ] ) , random . randint ( <NUM_LIT:0> , size [ <NUM_LIT:1> ] ) ) <EOL> except : <EOL> pos = ( random . randint ( <NUM_LIT:0> , <NUM_LIT> ) , random . randint ( <NUM_LIT:0> , <NUM_LIT> ) ) <EOL> print "<STR_LIT>" % ( str ( pos ) ) <EOL> m . move ( pos [ <NUM_LIT:0> ] , pos [ <NUM_LIT:1> ] ) <EOL> time . sleep ( <NUM_LIT:2> ) <EOL> m . click ( pos [ <NUM_LIT:0> ] , pos [ <NUM_LIT:1> ] , <NUM_LIT:1> ) <EOL> time . sleep ( <NUM_LIT:2> ) <EOL> m . click ( pos [ <NUM_LIT:0> ] , pos [ <NUM_LIT:1> ] , <NUM_LIT:2> ) 
 time . sleep ( <NUM_LIT:2> ) 
 from pymouse import PyMouse <EOL> import random , time <EOL> try : <EOL> from pymouse import PyMouseEvent <EOL> class event ( PyMouseEvent ) : <EOL> def move ( self , x , y ) : <EOL> print "<STR_LIT>" , x , y <EOL> def click ( self , x , y , button , press ) : <EOL> if press : <EOL> print "<STR_LIT>" , x , y , "<STR_LIT>" , button <EOL> else : <EOL> print "<STR_LIT>" , x , y , "<STR_LIT>" , button <EOL> e = event ( ) <EOL> e . start ( ) <EOL> except ImportError : <EOL> print "<STR_LIT>" <EOL> m = PyMouse ( ) <EOL> try : <EOL> size = m . screen_size ( ) <EOL> print "<STR_LIT>" % ( str ( size ) ) <EOL> pos = ( random . randint ( <NUM_LIT:0> , size [ <NUM_LIT:0> ] ) , random . randint ( <NUM_LIT:0> , size [ <NUM_LIT:1> ] ) ) <EOL> except : <EOL> pos = ( random . randint ( <NUM_LIT:0> , <NUM_LIT> ) , random . randint ( <NUM_LIT:0> , <NUM_LIT> ) ) <EOL> print "<STR_LIT>" % ( str ( pos ) ) <EOL> m . move ( pos [ <NUM_LIT:0> ] , pos [ <NUM_LIT:1> ] ) <EOL> time . sleep ( <NUM_LIT:2> ) <EOL> m . click ( pos [ <NUM_LIT:0> ] , pos [ <NUM_LIT:1> ] , <NUM_LIT:1> ) <EOL> time . sleep ( <NUM_LIT:2> ) <EOL> m . click ( pos [ <NUM_LIT:0> ] , pos [ <NUM_LIT:1> ] , <NUM_LIT:2> ) <EOL> time . sleep ( <NUM_LIT:2> ) <EOL> m . click ( pos [ <NUM_LIT:0> ] , pos [ <NUM_LIT:1> ] , <NUM_LIT:3> ) <EOL> try : <EOL> e . stop ( ) <EOL> except : <EOL> pass </s>
