from pywinauto import application #启动应用程序 file='C:/Program Files (x86)/绿金在线/绿金在线倚天行情交易客户端/isky.exe' app=application.Application(backend='win32').start(file) #连接应用程序 #app = application.Application().connect_(title_re = AppName) gWizardStr = u'系统登录' MainDlg = app[gWizardStr] #MainDlg.print_control_identifiers() #MainDlg.button2.Click() MainDlg[u'登录'].click() app[u'系统消息'].close()
写给自己,在自动化,自己建造操作系统上又进了一步