Revision: 40924
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at February 10, 2011 02:53 by Affix
Initial Code
from time import time import pymouse lastTime = time() mouse = pymouse.PyMouse() position = mouse.position() away = 0 while(1): if time() >= (lastTime + 60): if mouse.position() == position: position = mouse.position() lastTime = time() away = 1 else: away = 0 position = mouse.position() else: if away == 1: if mouse.position() != position: away = 0 position = mouse.position()
Initial URL
http://affix.me
Initial Description
Initial Title
Python Mouse Away
Initial Tags
Initial Language
Python