ionut Posted March 26, 2010 Share Posted March 26, 2010 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. 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 More sharing options...
ionut Posted March 26, 2010 Author Share Posted March 26, 2010 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.11ecf0529gridControl1[NAME:gridControl1]80634246, 7211246, 199249, 1160x560100000x000000000x007B09C0I 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now