Project idea

Skip to first unread message

Colin Brown

Sep 12, 2002, 9:14:58 PM9/12/02
On 6/09/2002 I wrote:

>>If you are interested in a Windows platform project for automated testing
>>then read on.
>>There is an excellent freeware package "AutoIt" available from
>>that provides a DLL module that could be readily interfaced to Python.
>>"AutoIt" is a simple tool that can simulate key presses, mouse movements
>>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
>>Unfortunately I do not have the time to follow up on this myself so I
>>I would pass it on.
>>Colin Brown

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 :)


Reply all
Reply to author
0 new messages