/ Published in: Python

Quick and dirty took me 2hours to find. The Xlib Documentation sucks. Have Fun\r\n\r\nnote: U need the Xlib -(Ubuntu)-> sudo apt-get install python-xlib
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
from Xlib import X, display d = display.Display().screen().root.query_pointer()._data print "x=" print d["root_x"] print "y=" print d["root_y"]
URL: http://simlan.tumblr.com/post/2658047235/cursorposition-on-linux-printing
Comments
