Curious52 Posted August 30, 2013 Share Posted August 30, 2013 I am able to get info. of most GUI info. of all kind of applications. However, there is some GUI which I can't get any text of some area (*) by all my known-methods "ControlGetText", "WinGetText" and "GUICtrlRead" - However when I use the Window Finder Tool to drop inside those area (*), then I can see their info. in the Summary or Visible Text Tab ... the problem is I don't know how to get those info. Anyone can help? Link to comment Share on other sites More sharing options...
EKY32 Posted August 30, 2013 Share Posted August 30, 2013 Hey Curious52, Please look at WinGetClassList function in the help file. [font="'trebuchet ms', helvetica, sans-serif;"]Please mark the answer of your question if you found it.[/font] Link to comment Share on other sites More sharing options...
Curious52 Posted August 30, 2013 Author Share Posted August 30, 2013 Hi EKY32, I saw some thing but it isn't like the contents of the Window Info Summary, but at least I have some thing ... I will work more on this and if it works I will reply over Thanks for help Link to comment Share on other sites More sharing options...
Curious52 Posted September 3, 2013 Author Share Posted September 3, 2013 Hi EKY32, Since we have a long weekend and I don't have the PC with me, so I only verify your suggestion this morning: The WinGetClassList only show the classes from a window, it doesn't show any of the contents from the text area which I would like to read by AutoIt (please see the attached image) - As you see the Window Info (Summary) can read and show all contents including in the Red circle area and even Window Info (Visible Text) can read and show only the Red Rectangular area Any suggestion? Link to comment Share on other sites More sharing options...
EKY32 Posted September 3, 2013 Share Posted September 3, 2013 (edited) Hey, Try using the advanced control identifying: $Text = ControlGetText("GenericPDS", "", "[CLASS:Button;INSTANCE:4]") MsgBox(0,"", $Text) ? Edited September 3, 2013 by EKY32 [font="'trebuchet ms', helvetica, sans-serif;"]Please mark the answer of your question if you found it.[/font] Link to comment Share on other sites More sharing options...
Curious52 Posted September 3, 2013 Author Share Posted September 3, 2013 Hi again I already did that & the MsgBox only shows: Command Response ... but nothing inside its area after that , I wonder that if the Autoit Window Info can show the Summary (or Visible Text) 's contents ... that means there is a way to read it! Link to comment Share on other sites More sharing options...
EKY32 Posted September 3, 2013 Share Posted September 3, 2013 Ok, try this silly code: For $x = 1 To 100 $text = ControlGetText("GenericPDS", "", "[CLASS:Static; INSTANCE:" & $x & "]") If Not $text = "" Then MsgBox(0, "Instance: " & $x, $text) Next to get the label's instance. [font="'trebuchet ms', helvetica, sans-serif;"]Please mark the answer of your question if you found it.[/font] Link to comment Share on other sites More sharing options...
Curious52 Posted September 3, 2013 Author Share Posted September 3, 2013 For the moment, it doesn't show any thing ($text = "") Link to comment Share on other sites More sharing options...
EKY32 Posted September 3, 2013 Share Posted September 3, 2013 For the moment, it doesn't show any thing ($text = "") opps! it should. Can you send me the program called: GenericPDS ? [font="'trebuchet ms', helvetica, sans-serif;"]Please mark the answer of your question if you found it.[/font] Link to comment Share on other sites More sharing options...
Curious52 Posted September 3, 2013 Author Share Posted September 3, 2013 - First of all it is ControlGetText("GenericPDS", "", "[CLASS:Button; INSTANCE:" & $x & "]") ... not "[CLASS:Static; INSTANCE:" - Secondly it only shows all label's instance (ie: Command Response) ... but not their contents - Sorry I can't send you the GenericPDS since it is the special application of our company & it will install in a specific folder with our legal authorization *) However I will try with other standard to see it will show the contents which Window Info Summary showing Link to comment Share on other sites More sharing options...
EKY32 Posted September 3, 2013 Share Posted September 3, 2013 - First of all it is ControlGetText("GenericPDS", "", "[CLASS:Button; INSTANCE:" & $x & "]") ... not "[CLASS:Static; INSTANCE:" Well, it's not a button you want to get the text from, it is a label and that's why it appears in the "visible text" section. please give me sometime I might get back here. [font="'trebuchet ms', helvetica, sans-serif;"]Please mark the answer of your question if you found it.[/font] Link to comment Share on other sites More sharing options...
Curious52 Posted September 3, 2013 Author Share Posted September 3, 2013 Hi again, I did try Window Info Finder Toll with MS Paint and it also doesn't work (I attach the new image), in this case you can try much more easily without our application Link to comment Share on other sites More sharing options...
Curious52 Posted September 3, 2013 Author Share Posted September 3, 2013 I meant how we use Autoit script to get Window Info Summary or Visible Text (the other commands only show contens of "[CLASS: xxxxx ; INSTANCE: xxxxx] ... not the Summary which can show other info while other commands can't! Link to comment Share on other sites More sharing options...
EKY32 Posted September 3, 2013 Share Posted September 3, 2013 I meant how we use Autoit script to get Window Info Summary or Visible Text (the other commands only show contens of "[CLASS: xxxxx ; INSTANCE: xxxxx] ... not the Summary which can show other info while other commands can't! What do you need exactly? To solve this question? or just to get the text from the circled control in the attached photo? anyway. i'll try. [font="'trebuchet ms', helvetica, sans-serif;"]Please mark the answer of your question if you found it.[/font] Link to comment Share on other sites More sharing options...
EKY32 Posted September 3, 2013 Share Posted September 3, 2013 Please give me the class list returned by WinGetClassList. [font="'trebuchet ms', helvetica, sans-serif;"]Please mark the answer of your question if you found it.[/font] Link to comment Share on other sites More sharing options...
Iczer Posted September 3, 2013 Share Posted September 3, 2013 i have same problem, but... for now i get away with "PixelCheckSumm()" (and lose functionality ) see - anyway, you can try latest beta - it have new algorithm for ControlGetText functions. for me its not work... Link to comment Share on other sites More sharing options...
Curious52 Posted September 3, 2013 Author Share Posted September 3, 2013 Here it is, what I need to get the "Command failed :Remote system does not appear to be ready to communicate." Link to comment Share on other sites More sharing options...
EKY32 Posted September 3, 2013 Share Posted September 3, 2013 Ahhh, try this: Local $text = WinGetClassList("GenericPDS", "") Local $array = StringSplit($text, @LF, 1) For $i = 1 To $array[0] $text = ControlGetText("GenericPDS", "", "[CLASS:" & $array[$i] & "; INSTANCE:" & $i & "]") If Not $text = "" Then MsgBox(0, "Instance: " & $i, $text) Next it will return all the data in all the visible controls, tell us the result please? [font="'trebuchet ms', helvetica, sans-serif;"]Please mark the answer of your question if you found it.[/font] Link to comment Share on other sites More sharing options...
Curious52 Posted September 3, 2013 Author Share Posted September 3, 2013 Hum, it still shows nothing Link to comment Share on other sites More sharing options...
EKY32 Posted September 3, 2013 Share Posted September 3, 2013 (edited) Hum, it still shows nothing nothing?! for all the controls it returned nothing or only for the control you want the text of? Edited September 3, 2013 by EKY32 [font="'trebuchet ms', helvetica, sans-serif;"]Please mark the answer of your question if you found it.[/font] 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