Jump to content

GUI Tree structure


Recommended Posts

Is this in your own GUI, or a 3rd parties?

If you have a script, please post it.

Cheers,

Brett

muttley

It's a 3rd party GUI. I need to automate the traversal between the elements in this tree structure.

All the elements are mentioned in an excel file. My script has to go through each cell of the excel file and select the element on the GUI automatically.

Link to comment
Share on other sites

Here it's as helper function:

#include <GuiTreeView.au3>

$treeview = ControlGetHandle("Document Size:", "", "SysTreeView321")
If Not SelectTreeItem($treeview,'asdf') Then MsgBox(0,'Info','Item "asdf" not found!')
If Not SelectTreeItem($treeview,'Arch A') Then MsgBox(0,'Info','Item "Arch A" not found!')

Func SelectTreeItem($tree, $item_text)
    $node = _GUICtrlTreeView_FindItem($tree, $item_text)
    If $node <> 0 Then
        _GUICtrlTreeView_SelectItem($tree, $node)
        Return 1
    EndIf
    Return 0
EndFunc
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...