benzmaster Posted June 26, 2008 Share Posted June 26, 2008 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.bmpcould you help ? Link to comment Share on other sites More sharing options...
DjDeep00 Posted June 26, 2008 Share Posted June 26, 2008 $text = WinGetClassList("AutoIt Help", "") MsgBox(0, "Text read was:", $text) Link to comment Share on other sites More sharing options...
benzmaster Posted June 26, 2008 Author Share Posted June 26, 2008 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 More sharing options...
DjDeep00 Posted June 30, 2008 Share Posted June 30, 2008 Use ControlGetText()... Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now