from pymouse import PyMouse from time import sleep from random import randint m = PyMouse() w, h = m.screen_size() while True: try: m.move(randint(0, w), randint(0, h)) sleep(20) except KeyboardInterrupt: print "Goodby!" break
from pymouse import PyMouse from time import sleep from random import randint m = PyMouse() w, h = m.screen_size() while True: try: m.move(randint(0, w), randint(0, h)) sleep(20) except KeyboardInterrupt: print "Goodby!" break