Sign in to follow this  
Followers 0
benzmaster

list controls to retrieve text

4 posts in this topic

Hi there !

I want to retrieve text in a window, but this text appears to be in a hidden control.

The text is visible but when I click on it with the AutoIt windows info, it seams to be under a control. (i don't know)

is there a way to search through every control of a windows to look for a string ?

a function that will return the name of the control...

In fact I just need to identify the control.

here is a screenshot : http://promodavid.free.fr/pokersite.bmp

could you help ?

Share this post


Link to post
Share on other sites



$text = WinGetClassList("AutoIt Help", "")
MsgBox(0, "Text read was:", $text)

Share this post


Link to post
Share on other sites

thx !! now for each control, i'd like to write the text in a file, i tryed :

$wtitle=WinGetTitle("windows title")
$whandle = WinGetHandle($wtitle)
$file = FileOpen("test.txt", 1)

for $i In $text=WinGetClassList($Winamaxhandle, "")
$texto=WinGetText ($text,"" )
FileWrite($file, $texto)
Next

FileClose($file)

but it does not work.. what should I do ?

Share this post


Link to post
Share on other sites

Use ControlGetText()...

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  
Followers 0