我正在使用 pywinauto,并尝试通过 Value.Value 选择表上的项目(见图),在这种情况下,它是“Test4”,它在 Row4 上:
from pywinauto.application import Application
import time, pywinauto
app = Application(backend="uia").start(r"C:\Isc\airCalc\AclPMain.exe")
app = Application(backend="uia").connect(title="airCalc++", timeout=5)
side_bar = app.AirCalc.child_window(control_type="Pane", found_index=2).wrapper_object()
side_bar.click_input(coords=(50,50))
time.sleep(3)
project = app.AirCalc.child_window(title="Row 4", control_type="Custom").wrapper_object()
app.AirCalc.print_control_identifiers()