sohfeyr Posted March 6, 2006 Posted March 6, 2006 Can somebody tello me what I'm doing wrong? I'm trying to use AutoIt to get text from controls in other applications, and I'm having trouble with the TreeView. I saw on the forums that the GUI UDFs were extended to use with other applications, so that can't be it. #include <GuiTreeView.au3> $hw = WinGetHandle("AutoIt Help") WinActivate($hw) $hc = ControlGetHandle($hw, "", "SysTreeView321") $tt = _GUICtrlTreeViewItemGetTree($hw, "SysTreeView321", "\") msgbox(0,$hc,$tt) $ct = ControlGetText($hw, "", "SysTreeView321") msgbox(0,$hc,$ct) The $hc appears in the messageboxes just fine, but both $tt and $ct are blank, whether I use the classname or the handle. (I can't use a Control ID because according to AU3Info, this control doesn't have one.) Mine:Time Functions - Manipulate the system clock! | WinControlList (WinGetClassList++) | .Net Setup Wrapper, Detect or install .Net | Writing and using a VB .NET COM object in AutoItNot mine, but highly recommended:AutoItTreeViewExtension plugin | Menu code | Callback helper dll | Auto3Lib - Control the uncontrollable | Creating COM objects in AutoIt | Using .Net framework classes in AutoIt
Valuater Posted March 6, 2006 Posted March 6, 2006 i can tell you that the control commands are able to work with external programs, however i believe that this _GUICtrlTreeViewItemGetTree is for a GUI Control created in autoit ( and i dont have the answer you are looking for ) 8)
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