Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

Search tree and select items

$
0
0

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)

Attached Thumbnails

  • Untitled.png

Viewing all articles
Browse latest Browse all 12506

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>