0
我想在窗口中讀取「msctls_progress32」的內容。我不知道如何訪問其內容,因爲我不知道這些內容。像,文本框有文本,標籤有標題,我如何訪問「msctls_progress32」的內容。我需要閱讀內容的最後一行,然後做一些遊行,如運行另一個程序,如果內容現在顯示爲「成功」。以下是控件標識符。我使用Python 2.72和pywinauto。進度條屬性python2.72 pywinauto
app.Cm3wsd.print_control_identifiers()
Control Identifiers:
Button - '&Exit' (L766, T594, R819, B618) '&Exit' '&ExitButton' 'Button' 'Button0' 'Button1'
Static - 'File to &download' (L459, T366, R537, B379) 'File to &download' 'File to &downloadStatic' 'Static'
Edit - 'C:\Users\pvathark\Desktop\sampleABC123.hex' (L459, T384, R767, B407) 'Edit' 'File to &downloadEdit'
Button - '&Browse...' (L768, T384, R821, B407) '&Browse...' '&Browse...Button' 'Button2'
Button - '&Monitor Status' (L459, T415, R819, B578) '&Monitor Status' '&Monitor StatusGroupBox' 'GroupBox'
ListBox - '' (L474, T439, R804, B553) 'File to &downloadListBox' 'ListBox'
Button - '&Start' (L550, T594, R603, B618) '&Start' '&StartButton' 'Button3'
Button - 'Run' (L694, T594, R747, B618) 'Button5' 'Run' 'RunButton'
msctls_progress32 - 'Progress1'(L474,T561,R804,B569)「&顯示器StatusProgress '進步'
Button - '&Configure...' (L466, T594, R531, B617) '&Configure...' '&Configure...Button' 'Button6'
問候,Vinu。