[BLUG] Controlling the mouse pointer from a script
Chris Colvard
blug_at_mailman.cs.indiana.edu
Tue, 02 Jan 2007 10:30:59 -0500
It looks like synergy is using an X11 extension called XTest, which
allows testing of the X Server with high level calls. You could either
use synergy's code that interacts with the extension or find a different
wrapper like the perl module X11::GUITest
(http://sourceforge.net/projects/x11guitest). There also seems to be a
python port of this perl module buried in the SVN repository for
enthought
(http://code.enthought.com/ets/doc/api_docs/enthought.guitest.x11.guitest.html).
These modules seem pretty interesting that I might make use of them
myself for automated GUI testing.
Enjoy!
-Chris
Mark Krenz wrote:
> There is a program for X windows called wmctrl that lets you do all
> kinds of window manager operations from the command line. Thus it is
> useful in scripts. But it does not have functions for controlling the
> mouse.
>
> Does anyone know of a program that can control the mouse pointer in X
> windows in a similar way? I'm sure its possible to do because that's
> what synergy does. But I need something that I can say something like:
>
> mousectrl -x +500
> mousectrl -leftclickdown
> mousectrl -x -500
> mousectrl -leftclickup
>
> My motivation is for using this to automate the process of taking
> screenshots of large ares on Mapquest or Google maps.
>
>
>