jftuga Posted October 19, 2005 Posted October 19, 2005 (edited) How can I get a list of all ControlIDs for a given Window title? Also, is there a way to get the type of said ID, like textbox, radio, button, dropdown, etc? I would like the extract the text from all of the textbox's.EDITMaybe this does it?? Although, it does not seems to return anything useful.Dim $slots[4096] Dim $textbox Dim $title = WinGetTitle("") Dim $data = WinGetClassList($title, "") Dim $fp = FileOpen("oc.txt",2) $slots = StringSplit( $data, @LF ) MsgBox(0,"slots:", $slots[0]) for $i = 1 to $slots[0] FileWriteLine($fp, $slots[$i] & @TAB & ControlGetText($title, "", $slots[$i])) next FileClose($fp)Thanks,-John Edited October 19, 2005 by jftuga Admin_Popup, show computer info or launch shellRemote Manager, facilitates connecting to RDP / VNCProc_Watch, reprioritize cpu intensive processesUDF: _ini_to_dict, transforms ini file entries into variablesUDF: monitor_resolutions, returns resolutions of multiple monitorsReport Computer Problem, for your IT help deskProfile Fixer, fixes a 'missing' AD user profile
LxP Posted October 22, 2005 Posted October 22, 2005 I just wrote a _ControlGetNumberedClassList() UDF which can give you an array of ClassNameNNs. It includes an example on how to grab all of the text from a window. Perhaps it will suit your needs nicely?
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