Jump to content

Recommended Posts

Posted

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

Posted

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)

NEWHeader1.png

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
×
×
  • Create New...