Searching a word in-file and showing it on List view

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
Noob_Nate
Posts: 11
Joined: 26 Apr 2017, 22:52

Searching a word in-file and showing it on List view

03 May 2017, 21:32

Hi,

Can you share some codes regarding simple Search a word and show result that will be shown on a list view?

TIA :thumbup:
BoBo
Posts: 6564
Joined: 13 May 2014, 17:15

Re: Searching a word in-file and showing it on List view

04 May 2017, 11:16

Code: Select all

#SingleInstance, Force

myDocDummy := "Hi, Can you share some codes regarding simple Search a word and show result that will be shown on a list view`?"
toSearchFor := "regarding"

Gui, Add, ListView, r2 w100, Found
Loop, parse, myDocDummy, %A_Space%
    If InStr(A_LoopField,toSearchFor) {
        LV_Add(toSearchFor,A_LoopField)
        }
 LV_ModifyCol()
                     
Gui, Show
return
Stolen from AHKs command reference [here] :!:

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Bing [Bot], Google [Bot], MrHue, Rohwedder, songdg and 368 guests