Hello guys, I'm working on this script:
$search = GUICtrlCreateButton("Search", 10, 10, 90, 30)
$find = GUICtrlCreateInput("", 710, 10, 200, 25)
GUICtrlSetState($find, $GUI_DISABLE)
$ok_find = GUICtrlCreateButton("Find", 925, 10, 65, 25)
GUICtrlSetState($ok_find, $GUI_DISABLE)
Case $search
GUICtrlSetState($ok_trova, $GUI_ENABLE)
GUICtrlSetState($trova, $GUI_ENABLE)
_GUICtrlListView_SimpleSort($list, $g_bSortSense, 0, False)
_GUICtrlListView_DeleteAllItems($list)
$File_txt = _FileListToArray("\\PATH\", "*.ini", $FLTA_FILES, True)
Local $aLines, $File_txt
For $i = 1 To $File_txt[0]
_FileReadtoArray($File_txt[$i], $aLines)
For $j = 1 To $aLines[0]
GUICtrlCreateListViewItem($aLines[$j], $list)
Next
Next
For $i2 = 0 To _GUICtrlListView_GetColumnCount($list)
_GUICtrlListView_SetColumnWidth($list, $i2, $LVSCW_AUTOSIZE_USEHEADER)
Next
Case $ok_find
$iI = _GUICtrlListView_FindInText($list, GUICtrlRead($input_find))
MsgBox($MB_SYSTEMMODAL, "Information", "Target Item Index: " & $iI)
_GUICtrlListView_EnsureVisible($list, $iI)
through a inputbox I would search for the desired word and highlight it in the GuiCtrlListView.
Can you help me?