Jump to content

Make ControlGetText/WinGetText get plain text


Recommended Posts

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.

 

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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
Link to comment
Share on other sites

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
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...