Hello, @arhack-bifrost, @Dinkumoil and All,
I was away from the N++ community since more than a month ( see my post below )
https://community.notepad-plus-plus.org/post/47895
So, my reply may be out of date !
However, the macro, below, with 2 almost identical parts, is able to first searches, recursively, for the expression variableNumber1 in all the files of your Folder_Path. Secondly, it searches, in the same way, for the expression variableNumber2 and, finally, shows the 2 successive search operations, in the Find Result panel :-))
<Macro name="searchTest" Ctrl="no" Alt="no" Shift="no" Key="0">
<Action type="3" message="1700" wParam="0" lParam="0" sParam="" />
<Action type="3" message="1601" wParam="0" lParam="0" sParam="variableNumber1" />
<Action type="3" message="1625" wParam="0" lParam="2" sParam="" />
<Action type="3" message="1653" wParam="0" lParam="0" sParam="X:\The_path_of_MyFolder\" />
<Action type="3" message="1652" wParam="0" lParam="0" sParam="*.c" />
<Action type="3" message="1702" wParam="0" lParam="800" sParam="" />
<Action type="3" message="1701" wParam="0" lParam="1656" sParam="" />
<Action type="3" message="1700" wParam="0" lParam="0" sParam="" />
<Action type="3" message="1601" wParam="0" lParam="0" sParam="variableNumber2" />
<Action type="3" message="1625" wParam="0" lParam="2" sParam="" />
<Action type="3" message="1653" wParam="0" lParam="0" sParam="X:\The_path_of_MyFolder\" />
<Action type="3" message="1652" wParam="0" lParam="0" sParam="*.c" />
<Action type="3" message="1702" wParam="0" lParam="800" sParam="" />
<Action type="3" message="1701" wParam="0" lParam="1656" sParam="" />
</Macro>
Notes :
Of course, you may add as many sections as you want to perform other searches ;-))
The parameters value 800 means : 512 ( Direction = Down ) + 256 ( Wrap around ) + 32 = Search in sub-folders
Two important remarks :
Your
initial macro, in your post, contains a syntax
error. Indeed, the line :
<Action type="3" message="1652" wParam="0" lParam="0" sParam="*.c*"" />
should be :
<Action type="3" message="1652" wParam="0" lParam="0" sParam="*.c" />
Secondly, note that, in all caases, the
absolute folder path, let’s say
"X:\The_path_of_MyFolder\", must, necessarily,
ends with a
backslash symbol (
\ )
Cheers,
guy038