Hi,
I am trying to select items with "Win" in its name. However, How about if it has to search texts with "History" AND "Win" at the same time?
Thanks
_GUICtrlTreeView_Expand(ControlGetHandle("[CLASS:HH Parent;TITLE:AutoIt Help]","", "[CLASS:SysTreeView32; INSTANCE:1]"),0, True) Global $hWnd = ControlGetHandle("[CLASS:HH Parent;TITLE:AutoIt Help]", "", "[CLASS:SysTreeView32; INSTANCE:1]") $searchText = "Win" $hItemFound = _GUICtrlTreeView_FindItem($hWnd, $searchText, True) While $hItemFound _GUICtrlTreeView_SelectItem($hWnd, $hItemFound) $next = _GUICtrlTreeView_GetNextVisible($hWnd, $hItemFound) $hItemFound = _GUICtrlTreeView_FindItem($hWnd, $searchText, True, $next) Sleep(1000) WEnd