Jump to content

How to extract the text out of a log window?


 Share

Recommended Posts

Hello,

I would like to extract the text out of a log window belonging to a .Net Application. Attached are the snapshots of the log window and the output of Window Info. post-56932-12696222753149_thumb.jpg post-56932-12696222825314_thumb.jpg

Class: WindowsForms10.window.8.app.0.11ecf05

Style: 0x17CF0000

ExStyle: 0x00050100

Handle: 0x00850ABC

When using WinID I've noticed that the HWND is different when I hove the mouse on top of the Log title bar vs. when I am right on top of the messages I am interested in.

How can I extract the text and the text format(I am interested in the text color which turns red when signaling an error) from this grid log window?

Thank you in advanced,

Ionut

Link to comment
Share on other sites

I am currently using this script:

Sleep( 5000)

$title = WinGetTitle("[active]", "")

$handle = ControlGetHandle($title, "", "Log")

$var = ControlGetText($title, "", 8063424)

MsgBox(0,"Titlu", $var)

8063424 is the ID of the gridControl1 as shown in the Window Info Control tab.

WindowsForms10.window.8.app.0.11ecf0529

gridControl1

[NAME:gridControl1]

8063424

6, 721

1246, 199

249, 116

0x56010000

0x00000000

0x007B09C0

I can't upload another snapshot so I've copy-pasted the output of the Control tab.

Thanks,

Ionut

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...