Jump to content
Sign in to follow this  
Curious52

How I can get all text in Window Info Summary or Visible Text tab

Recommended Posts

Curious52

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? :sweating: 

 

Share this post


Link to post
Share on other sites
EKY32

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]

Share this post


Link to post
Share on other sites
Curious52

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

Share this post


Link to post
Share on other sites
Curious52

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? :sweating:

 

 

post-76616-0-98829600-1378214979_thumb.j

Share this post


Link to post
Share on other sites
EKY32

Hey,

Try using the advanced control identifying:

$Text = ControlGetText("GenericPDS", "", "[CLASS:Button;INSTANCE:4]")
MsgBox(0,"", $Text)

^_^  ?

Edited by EKY32

[font="'trebuchet ms', helvetica, sans-serif;"]Please mark the answer of your question if you found it.[/font]

Share this post


Link to post
Share on other sites
Curious52

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!

Share this post


Link to post
Share on other sites
EKY32

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. :shifty:


[font="'trebuchet ms', helvetica, sans-serif;"]Please mark the answer of your question if you found it.[/font]

Share this post


Link to post
Share on other sites
Curious52

For the moment, it doesn't show any thing ($text = "")

Share this post


Link to post
Share on other sites
EKY32

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]

Share this post


Link to post
Share on other sites
Curious52

- 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 o:)

Share this post


Link to post
Share on other sites
EKY32
- 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]

Share this post


Link to post
Share on other sites
Curious52

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

post-76616-0-99545400-1378230680_thumb.j

Share this post


Link to post
Share on other sites
Curious52

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!

Share this post


Link to post
Share on other sites
EKY32

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]

Share this post


Link to post
Share on other sites
EKY32

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]

Share this post


Link to post
Share on other sites
Iczer

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...

Share this post


Link to post
Share on other sites
Curious52

Here it is, what I need to get the "Command failed :Remote system does not appear to be ready to communicate."

post-76616-0-63792000-1378233275_thumb.j

Share this post


Link to post
Share on other sites
EKY32

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]

Share this post


Link to post
Share on other sites
EKY32

Hum, it still shows nothing

 

nothing?! for all the controls it returned nothing or only for the control you want the text of?

Edited by EKY32

[font="'trebuchet ms', helvetica, sans-serif;"]Please mark the answer of your question if you found it.[/font]

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  

×