9

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
GoBlue_MathMan
  • 1,048
  • 2
  • 13
  • 20

1 Answers1

14

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

Vasily Ryabov
  • 9,386
  • 6
  • 25
  • 78