Python Forum
Kindly asking for help with Pywinauto
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Kindly asking for help with Pywinauto
#1
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:

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']
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  MemoryError in pywinauto.findwindows.find_windows – Need Help! ktw3857 0 119 Mar-25-2024, 02:23 AM
Last Post: ktw3857
Shocked kindly support with this dropna function not working gheevarpaulosejobs 2 617 Jul-24-2023, 03:41 PM
Last Post: deanhystad
  Pywinauto typing in the wrong field EGameiro 0 656 Jun-07-2023, 10:01 PM
Last Post: EGameiro
  Help ~ coding with pywinauto NickNHartley 1 2,194 Apr-20-2023, 05:20 PM
Last Post: farshid
  pywinauto, anyone use it? thewolf 1 2,787 Mar-01-2021, 09:58 PM
Last Post: snippsat
  set_focus() in python pywinauto stearno 0 4,659 Nov-05-2020, 09:34 AM
Last Post: stearno
  Checking the presence of label using pywinauto module Malt 0 1,885 Jul-26-2019, 09:06 AM
Last Post: Malt
  Kindly explain this error BlackList96 4 4,213 Jul-16-2019, 12:46 PM
Last Post: snippsat
  [PyWinAuto] Please help me with Typekeys () mattroi261192 2 7,805 Apr-23-2019, 01:55 AM
Last Post: mattroi261192
  Not able to convert PYWINAUTO module automation in exe file Utkarsh29 0 2,398 Mar-19-2019, 09:39 PM
Last Post: Utkarsh29

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020