Skip to content

Instantly share code, notes, and snippets.

@emilssolmanis
Created May 10, 2012 22:44
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 emilssolmanis/2656401 to your computer and use it in GitHub Desktop.
Save emilssolmanis/2656401 to your computer and use it in GitHub Desktop.
Python2 - Xlib, mouse move
# by Daniel Baggio, http://danielbaggio.blogspot.com/2009/03/python-mouse-move-in-5-lines-of-code.html
from Xlib import X, display
d = display.Display()
s = d.screen()
root = s.root
root.warp_pointer(300,300)
d.sync()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment