Project idea

0 views
Skip to first unread message

Colin Brown

unread,
Sep 12, 2002, 9:14:58 PM9/12/02
to
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

Reply all
Reply to author
Forward
0 new messages