[BLUG] Controlling the mouse pointer from a script

Mark Krenz blug_at_mailman.cs.indiana.edu
Tue, 2 Jan 2007 16:18:23 +0000


  Wow, this is cool.  I think this will do exactly what I want. There is
always a perl module for what you want to do.  From trying it out real
quick, it looks like the perl script needs to start the application so
that its a child of the process, but that's ok, I can write stopping
points into the script.  I'll let you know how it goes.

  Thanks Chris.

On Tue, Jan 02, 2007 at 03:30:59PM GMT, Chris Colvard [cjcolvar_at_indiana.edu] said the following:
> 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.
> >
> >
> >  
> 
> _______________________________________________
> BLUG mailing list
> BLUG_at_linuxfan.com
> http://mailman.cs.indiana.edu/mailman/listinfo/blug
> 

-- 
Mark Krenz
Bloomington Linux Users Group
http://www.bloomingtonlinux.org/