Mar-05-2020, 06:55 PM
Hi.
I am trying to read some data off the screen of an application (An embedded debugger) I want to read the test that is the program counter. here is a picture of the application..
http://www.mediafire.com/folder/16nukm9o..._code_help
I wrote (poorly) the following python 2.7 code:
text file an above link)
I am a fair VB 6 programmer (no expert by any means) and the output here is very vexing to me. I do not see any "text boxes" that would contain the program counter. My limited understanding here tells me that the author is putting the text into "AfxFrameOrView100" but there are multiple copies of this object, (further nothing seems to make any one different / identifiable) -- so I am a t a complete loss.
Can anyone give me a clue ash to how to proceed from here?
Thanks,
---Lou
Control Identifiers:
I am trying to read some data off the screen of an application (An embedded debugger) I want to read the test that is the program counter. here is a picture of the application..
http://www.mediafire.com/folder/16nukm9o..._code_help
I wrote (poorly) the following python 2.7 code:
from pywinauto import Application app = Application().connect(path =r"c:\Program Files (x86)\NoICE\bin\NoICE12.exe") dlg = app.top_window() dlg.print_control_identifiers()now, it gives me a HUGE and complicated mess, so much so that I have no idea how to ask for the window with the program counter in it. (see below and
text file an above link)
I am a fair VB 6 programmer (no expert by any means) and the output here is very vexing to me. I do not see any "text boxes" that would contain the program counter. My limited understanding here tells me that the author is putting the text into "AfxFrameOrView100" but there are multiple copies of this object, (further nothing seems to make any one different / identifiable) -- so I am a t a complete loss.
Can anyone give me a clue ash to how to proceed from here?
Thanks,
---Lou
Control Identifiers:
Output:Afx:00340000:b:00010007:00000006:0D750CC7 - 'NoICE12 (RESET) - Registered to lou ' (L673, T9, R1582, B1017)
[u'Afx:00340000:b:00010007:00000006:0D750CC7', u'NoICE12 (RESET) - Registered to lou Afx:00340000:b:00010007:00000006:0D750CC7', u'NoICE12 (RESET) - Registered to lou ']
child_window(title="NoICE12 (RESET) - Registered to lou ", class_name="Afx:00340000:b:00010007:00000006:0D750CC7")
|
| AfxMDIFrame100 - '' (L681, T89, R1574, B990)
| [u'NoICE12 (RESET) - Registered to lou AfxMDIFrame100', u'AfxMDIFrame100']
| child_window(class_name="AfxMDIFrame100")
| |
| | AfxFrameOrView100 - '' (L683, T91, R1572, B133)
| | [u'NoICE12 (RESET) - Registered to lou AfxFrameOrView100', u'AfxFrameOrView1001', u'AfxFrameOrView1000', u'AfxFrameOrView100', u'NoICE12 (RESET) - Registered to lou AfxFrameOrView1000', u'NoICE12 (RESET) - Registered to lou AfxFrameOrView1001']
| | child_window(class_name="AfxFrameOrView100")
| |
| | AfxFrameOrView100 - '' (L683, T140, R1572, B677)
| | [u'NoICE12 (RESET) - Registered to lou AfxFrameOrView1002', u'AfxFrameOrView1002']
| | child_window(class_name="AfxFrameOrView100")
| |
| | AfxFrameOrView100 - '' (L683, T684, R1572, B988)
| | [u'AfxFrameOrView1003', u'NoICE12 (RESET) - Registered to lou AfxFrameOrView1003']
| | child_window(class_name="AfxFrameOrView100")
| | |
| | | ScrollBar - '' (L922, T971, R1555, B988)
| | | [u'ScrollBar0', u'ScrollBar1', u'ScrollBar', u'NoICE12 (RESET) - Registered to lou ScrollBar1', u'NoICE12 (RESET) - Registered to lou ScrollBar0', u'NoICE12 (RESET) - Registered to lou ScrollBar']
| | | child_window(class_name="ScrollBar")
| | |
| | | AfxFrameOrView100 - '' (L683, T684, R1572, B971)
| | | [u'AfxFrameOrView1004', u'NoICE12 (RESET) - Registered to lou AfxFrameOrView1004']