功能按键
send_keys("{TAB}")
字符串输入
send_keys("Hello world!")
点击
pywinauto.mouse.click(button='left', coords=(738, 317))
组合键(记得抬起按键,不然会一直按着)
send_keys("{LWIN down}" "{R down}" "{LWIN up}" "{R up}")
获取和设置文本
main_dlg['打开(&O):Edit'].set_text("D:\AutoTest\package\DemoDevice.exe")
text = main_dlg['打开(&O):Edit'].TextBlock()