Jump to content
Sign in to follow this  
Jankins

Make ControlGetText/WinGetText get plain text

Recommended Posts

Jankins

Hi All,

Under Control tab of AutoIt Window Info program, the Value of  the Text property has all the visible and hidden plain text.

After set WinDetectHiddenText to be 1, however, ControlGetText can only get the visible plain text and WinGetText can get the visible plain text and some encrypted hidden text.

How to get all the visible and hidden plain text like AutoIt Window Info program?

Thanks.

 

Share this post


Link to post
Share on other sites
computergroove

Can you provide an example?

Please label:

1. The visible text

2. Some of the encrypted hiden text

3. All of the text and how you got that text(I am assuming that this is what you want but cant get)


Get Scite to add a popup when you use a 3rd party UDF -> http://www.autoitscript.com/autoit3/scite/docs/SciTE4AutoIt3/user-calltip-manager.html

Share this post


Link to post
Share on other sites
Jankins

Can you provide an example?

Please label:

1. The visible text

2. Some of the encrypted hiden text

3. All of the text and how you got that text(I am assuming that this is what you want but cant get)

The visible and hidden plain text are very long:

----------start line ----------

This is plain text  ........  

Extended element information:

details is listed.......

---------end line -----------

The visible text filed is:

----------start line ----------

This is plain text  ........  

---------end line -----------

 

The hidden text field is:

------start line ------

Extended element information:
<dlgctrlid>
------end line ------
 
I use ControlGetText to get all visible text "This is plain text ......". I use WinGetText to get all visible text and hidden text "Extended element information:<dlgctrlid>".
 
The <dlgctrlid> is not the plain text!!!!!
 
Hope this is clearer.
 
Thanks.
Edited by Jankins

Share this post


Link to post
Share on other sites
Jankins

I think I found the reason. 

THe <dlgctrlid> information is shown because there is another control in the windows.

There is a "listview" control in the windows.  However, I still couldn't get the right plain text out.

Edited by Jankins

Share this post


Link to post
Share on other sites
computergroove

I spent too much time trying to find the control id of the window. Can you share some of your code? How are you finding the control ID?


Get Scite to add a popup when you use a 3rd party UDF -> http://www.autoitscript.com/autoit3/scite/docs/SciTE4AutoIt3/user-calltip-manager.html

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  

×