w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
python, write a code to automatically execute an external program and use the method to execute the program's task

You should try to use pywinauto for that: http://code.google.com/p/pywinauto/ Install it and read docs.


from pywinauto import application
app = application.Application.start("C:\EnergyPlusV7-2-0\EP-Launch.exe")
# open dialog here with pywinauto (see docs), it's bound to interface can't
help here
# press next button

Also look into SWAPY it will generate automation python code for pywinauto.


© Copyright 2018 w3hello.com Publishing Limited. All rights reserved.