Search the Community
Showing results for tags 'searchcontent'.
-
Exit _DebugArrayDisplay(_FileListToArray_EverythingSearch(), "Error: " & @error & " - File count: " & @extended) Func _FileListToArray_EverythingSearch($iMaxCount = 5000) Local Static $sTitle = "[CLASS:EVERYTHING;]" If Not WinExists($sTitle) Then $sTitle = "[CLASS:EVERYTHING;]" ; @ https://www.voidtools.com/ If Not WinExists($sTitle) Then $sTitle = "[CLASS:EVERYTHING_(1.5a);]" ; @ https://www.voidtools.com/everything-1.5a/ ; this "alpha" has dark mode. If Not WinExists($sTitle) Then Local $aArray[1] = [0] Return SetError(1, 0, $aArray) ; the GUI is not found EndIf If Not @AutoItX64 Then ; because I use the x64 version of voidtools' "everything" search engine. Local $aArray[1] = [0] ; https://www.voidtools.com/ Return SetError(2, 0, $aArray) ; ControlListView() must match (64bit or 32bit) as otherwise "death of the apps !" EndIf Local $iItemCount = ControlListView($sTitle, "", "[CLASS:SysListView32; INSTANCE:1]", "GetItemCount") Local $iSubItemCount = ControlListView($sTitle, "", "[CLASS:SysListView32; INSTANCE:1]", "GetSubItemCount") If $iItemCount > $iMaxCount Then $iItemCount = $iMaxCount ; $iSubItemCount is not used here but, I copied this from another script. Local $aArray[$iItemCount + 1] Local $u1 = $iItemCount - 1, $u2 = $iSubItemCount - 1 For $n = 0 To $u1 $aArray[$n + 1] = ControlListView($sTitle, "", "[CLASS:SysListView32; INSTANCE:1]", "GetText", $n, 1) & _ "\" & ControlListView($sTitle, "", "[CLASS:SysListView32; INSTANCE:1]", "GetText", $n, 0) Next $aArray[0] = $iItemCount Return SetError(0, $iItemCount, $aArray) EndFunc ;==>_FileListToArray_EverythingSearch I use "Everything" search engine. Also use @Nine's SearchContent script. I wanted to get the file list from _FileListToArray_EverythingSearch() instead of from _FileListToArrayRec(). So I cooked this ( actually a copy'n'paste from elsewhere ) to "eat my cake and have it too". Also, in the search filter of everything, you can replace the ";" separator with "|" ( a pipe ) and use it in everything search engine. Ex: "*.au3|*.txt|*.log|*.ini|*conf C: \includes\" Not a revolutionary new way to do anything but I wanted to share the idea
- 2 replies
-
- voidtools
- everything
-
(and 2 more)
Tagged with: