benzmaster Posted June 26, 2008 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 ?
DjDeep00 Posted June 26, 2008 Posted June 26, 2008 $text = WinGetClassList("AutoIt Help", "") MsgBox(0, "Text read was:", $text)
benzmaster Posted June 26, 2008 Author 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 ?
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