Project idea

Colin Brown cbrown at metservice.com
Thu Sep 12 21:14:58 EDT 2002


On 6/09/2002 I wrote:

>>Hi
>>
>>If you are interested in a Windows platform project for automated testing
>>then read on.
>>
>>There is an excellent freeware package "AutoIt" available from
>>http://www.hiddensoft.com/AutoIt/
>>that provides a DLL module that could be readily interfaced to Python.
>>
>>"AutoIt" is a simple tool that can simulate key presses, mouse movements
and
>>window commands (maximize, minimize, wait for, etc.) in order to automate
>>any windows based task (or even windowed DOS tasks).
>>
>>Combining these features with say the ability to produce checksums of
>>snapshotted screen frames for
>>test comparisons would provide the basis for a nice GUI regression test
rig.
>>
>>Unfortunately I do not have the time to follow up on this myself so I
thought
>>I would pass it on.
>>
>>Colin Brown
>>PyNZ

On re-examination, this is even easier because the package already comes
with an ActiveX component.
Here is an example of how simple it is to use:

Python 2.2.1
>>> import win32com.client
>>> conn=win32com.client.Dispatch('AutoIt.Control')
>>> help(conn)

<COMObject AutoItX.Control>

>>> conn.WinGetActiveTitle()
u'Python (command line)'
>>> conn.WinMinimize('Python (command line)','')

& the window minimises!

>From here on in even a beginner should be able to have some fun :)

Colin






More information about the Python-list mailing list