8

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=application.Application
app.findwindows #prints all windows running on machine

app.window("Trade Monitor") #error
4

1 回答 1

12

只需使用app = Application().connect(title='Trade Monitor', timeout=10). 更多详细信息在此处的文档中

于 2016-08-18T16:07:00.087 回答