I'm wondering how to set the mouse cursor position under X11? Is it possible at all and if, where do I have to look for appropriate functions? X window system, KDE/Gnome/...?
+3
A:
Sounds like you're using X, so what you probably want is XWarpPointer
. To give an absolute position on the whole screen, use the Root Window as dest window.
(You can get a quick and dirty list of X functions using ls /usr/share/man/man3/ | grep '^X'
)
Ant P.
2009-02-23 18:49:50
See http://tronche.com/gui/x/xlib/input/XWarpPointer.htmlTo give an absolute position on the whole screen, use the Root Window as dest window.
ypnos
2009-02-23 20:09:28
A:
I know the question is old, but I just discovered xdotool and it seems great:
AkiRoss
2010-08-06 21:20:11