Benutzer:Riot/MouseMover
Aus Förderverein euregionale Digitalkultur e.V.
#!/usr/bin/python from Xlib import X, display from time import sleep d = display.Display() s = d.screen() a = 50 b = 0 while True: root = s.root y = root.query_pointer()._data["root_y"] x = root.query_pointer()._data["root_x"] root.warp_pointer((x+a),(y+b)) a = -a b = -b d.sync() sleep(1)