Why does pywinauto have 10 second delays between commands?

Viewed 147

This code has a 10 second delay between iterations:

from pywinauto.application import Application
app = Application(backend="uia").connect(process=19840)
dlg = app.windows()
for i in range(lbitemcount):
    i += 1
    rselitem = "ListItem" + str(i)
    lditemtext = str(app.dlg.ListBox.child_window(best_match=""+rselitem+"").texts())
    print(homenum, lditemtext)
    if homenum == lditemtext:
        app.dlg.ListBox.child_window(best_match=""+rselitem+"").double_click_input()
        break

Other pywinauto commands seem to have the same issue (such as input or getting text from textboxes). How can I reduce this delay?

0 Answers
Related