GoBlue_MathMan GoBlue_MathMan - 1 year ago 173
Python Question

Using PyWinAuto to control a currently running application

Using the following code I can find that the currently running window I want to connect is named "Trade Monitor" how do i successfull connect to it? Using the app.start_ method does not work.

from pywinauto import application
app.findwindows #prints all windows running on machine

app.window("Trade Monitor") #error

Answer Source

Just use app = Application().connect(title='Trade Monitor'). More detailed info is in the docs here.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download