GUI testing with python (SendKeys)

Dave Brueck dave at pythonapocrypha.com
Mon Apr 28 23:48:49 EDT 2003


On Mon, 28 Apr 2003, pj wrote:

> I took a look at a girder.
> It seemed far excessive for my requirements.
> Frankly I havnt understood what its all about yet.
>
> Just the sendkeys offered by Windows Scripting object isnt enough either. I
> need some mouse manipulation too. So I thought perls Win32::GuiTest was a
> good starting point.
>
> Is there another easier to read description of girder somewhere on the net ?

Hi PJ,

I've been happy with AutoIt (http://www.hiddensoft.com/AutoIt/) as it
simulates keypresses, mouse clicks, and a few other things. There is no
Python binding but it does have an ActiveX interface you can use, so that
works just as well, e.g.:

from win32com.client import Dispatch
c = Dispatch('AutoItX.Control')
c.WinActivate('SomeApp', '')
c.LeftClick(400, 200)
...

-Dave





More information about the Python-list mailing list