bazinguuh Posted June 17, 2013 Share Posted June 17, 2013 (edited) Hi @all, Do you know how to scan a tree and select an item. For example is the autoit help file. I expand all the tree and what it has to do next is scan the items with a "history" in its name. If true, it has to select it and sleep for 5 seconds and continue select the next item it finds until end loop. thanks. #include <GuiTreeView.au3> $file = FileGetShortName("C:\Users\Smgl\Desktop\AutoIt3.chm") Run(@ComSpec & " /c start " & $file) WinWaitActive("AutoIt Help") _GUICtrlTreeView_Expand(ControlGetHandle("[CLASS:HH Parent;TITLE:AutoIt Help]","", "[CLASS:SysTreeView32; INSTANCE:1]"),0, True) MsgBox(0,"","") Global $hWnd = ControlGetHandle("[CLASS:HH Parent;TITLE:AutoIt Help]", "", "[CLASS:SysTreeView32; INSTANCE:1]") $hItemFound = _GUICtrlTreeView_FindItem($hWnd, "History",True) _GUICtrlTreeView_SelectItem($hWnd, $hItemFound) Edited June 17, 2013 by bazinguuh Link to comment Share on other sites More sharing options...
AZJIO Posted June 17, 2013 Share Posted June 17, 2013 You need to run in a loop closure of each item. 1. I can offer an example of automation (HELP_AutoIt3.au3) 2. See an example of automation (ControlTreeView) My other projects or all Link to comment Share on other sites More sharing options...
michaelslamet Posted June 17, 2013 Share Posted June 17, 2013 Hi AZJIO, Do you have a english link for above sites? Link to comment Share on other sites More sharing options...
AZJIO Posted June 17, 2013 Share Posted June 17, 2013 Yes link1 link2 My other projects or all Link to comment Share on other sites More sharing options...
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