Jump to content
Sign in to follow this  

How to extract the text out of a log window?

Recommended Posts



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,


Share this post

Link to post
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.





6, 721

1246, 199

249, 116




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



Share this post

Link to post
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
Sign in to follow this