Hi @all,
I am new to autoIT. I am trying to collapse the parent tree of autoit help file as shown in the picture below. Should be an index of that tree is used so it can identify which will collapse?
EDIT: Or maybe Expand all? I know how to expand a tree in a "created GUI". But in a file such as this, I do not know...
#include <GUIConstantsEx.au3> #include <GuiTreeView.au3> #include <WindowsConstants.au3> $file = FileGetShortName("C:\Users\PHSD100-SIC\Desktop\AutoIt3.chm") RunWait(@ComSpec & " /c start " & $file) $class_treeview = "[CLASS:SysTreeView32; INSTANCE:1]" ControlTreeView('[CLASS:HH Parent]', '', '[CLASS:SysTreeView32; INSTANCE:1]', 'Collapse All', 0) If @error Then MsgBox(4096, "Test", "Item not collapse", 10) EndIf