Use python to execute a windows program

Simon Brunning simon at brunningonline.net
Fri Sep 11 11:01:39 EDT 2009


2009/9/11 Doran, Harold <HDoran at air.org>:
> The way we do this now is a person sits in front of their machine and
> proceeds as follows:
>
> 1) Open windows program
> 2) Click file -> open which opens a dialog box
> 3) Locate the file (which is a text file) click on it and let the
> program run.

It might very well be possible, depending upon how the program you
want to automate has been written.

First, make sure, absolutely sure, that's there's no "proper"
automation option available - a command line version, COM automation,
that kind of thing. These approaches are very much easier than GUI
automation.

If none of these options are available, <http://pywinauto.openqa.org/>
is probably what you need.

-- 
Cheers,
Simon B.



More information about the Python-list mailing list