Jump to content

Problems using the TreeView UDF with another application


Recommended Posts

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

Link to comment
Share on other sites

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...