Jump to content

list controls to retrieve text


Recommended Posts

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 ?

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

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