March 23, 2004

Mouse movement script    [ Software ]

Got a request for a perl script - user needs to automate double-clicking in a GUI app at three different coordinates.   Found Win32::TestGui on CPAN, so I wrote up a little script which uses the module to move the mouse around and double-click.   It's a horrible hack right now, nothing's parameterized for command-line args, but just in case anyone may find it useful, here it is.

[update - 20040323 1902h edobbs]
Updated the script to include command-line argument handling, better error checking and a compiled executable using perl2exe.   Behold version 0.2.   Averages about 20 double-clicks/second on my Dell Latitude C840 (2Ghz P4, 512MB) running Windows XP.

mouse.pl script + executable, version 0.2, released under the GPL.

Posted by edobbs at March 23, 2004 03:33 PM