<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Scrpit for automating multiple &quot;search in Files&quot;]]></title><description><![CDATA[<p dir="auto">Hey guys, feel great to be part of the community so far</p>
<p dir="auto">so I will sum up my problem and the things I Tried<br />
here is the situation : I have a text file containing a list of variable names that looks like this:<br />
var1<br />
var2<br />
var3<br />
What I want to do is to use Notepad++ “find in files” to search a certain directory for var1 then search var2 and so on…<br />
And the final goal is to show resaluts in “search resulat window” for each word as you can see in <a href="https://community.notepad-plus-plus.org/topic/18333/how-to-do-multiple-search-for-a-list-of-strings/2">&gt;&gt; This Thread &lt;&lt;</a></p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/7192">@dinkumoil</a> suggested using a script to do so<br />
with pythonScript plugin I start to manipulate some commands (I’m new to python)</p>
<p dir="auto">so Recoreded a macros to see whats go behind and I found the following:<br />
for example the macros for “copy” is</p>
<pre><code>&lt;Action type="0" message="2178" wParam="0" lParam="0" sParam="" /&gt;
</code></pre>
<p dir="auto">By looking at Scintilla command In scintilla.h the message 2178 is equivalnet to `</p>
<p dir="auto"><strong>SCI_COPY</strong> in the PythonScript documentation <a href="http://npppythonscript.sourceforge.net/docs/latest/scintilla.html" rel="nofollow ugc">here</a> which equivalent in pythonScript to command <strong>editor.copy()</strong>  same for <strong>editor.research()</strong> and so on<br />
so my thinking was do the same for the command “Find in Files” and the macros was</p>
<pre><code>&lt;Action type="3" message="1700" wParam="0" lParam="0" sParam="" /&gt;
            &lt;Action type="3" message="1601" wParam="0" lParam="0" sParam="String_I_Was_looking_for" /&gt;
            &lt;Action type="3" message="1625" wParam="0" lParam="0" sParam="" /&gt;
            &lt;Action type="3" message="1653" wParam="0" lParam="0" sParam="path_Of_Directory" /&gt;
            &lt;Action type="3" message="1652" wParam="0" lParam="0" sParam="*.*" /&gt;
            &lt;Action type="3" message="1702" wParam="0" lParam="32" sParam="" /&gt;
            &lt;Action type="3" message="1701" wParam="0" lParam="1656" sParam="" /&gt;
</code></pre>
<p dir="auto">These messages are discribed in Notepad++ documentation <a href="https://npp-user-manual.org/docs/searching/" rel="nofollow ugc">here</a> (see last section) BUT there are not defined in Scintilla commands file.</p>
<p dir="auto">So I went further and searched about them in NotePad++ source code to find them in the file <strong>PowerEditor\src\ScitillaComponent\FindReplaceDlg_rc.h</strong></p>
<p dir="auto">But I couldn’t find a way to Impliment them (like I did with <em>copy</em> command)</p>
<p dir="auto">Not sure if my approach is correct or i’m missing somthing and this the reason why i here i guess, and i will be glad to hear your thoughts, scripts, Ideas and help</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/18362/scrpit-for-automating-multiple-search-in-files</link><generator>RSS for Node</generator><lastBuildDate>Thu, 23 Apr 2026 02:56:29 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/18362.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 12 Oct 2019 20:28:33 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Scrpit for automating multiple &quot;search in Files&quot; on Sat, 12 Oct 2019 20:50:08 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/7377">@Alan-Kilborn</a> Thanks for your answer yes you are right there is such commands i guess, that what i noticied by looking at Scintilla documention, but i still wonder how NotePad interpret this messages</p>
]]></description><link>https://community.notepad-plus-plus.org/post/47772</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/47772</guid><dc:creator><![CDATA[Arhack Bifrost]]></dc:creator><pubDate>Sat, 12 Oct 2019 20:50:08 GMT</pubDate></item><item><title><![CDATA[Reply to Scrpit for automating multiple &quot;search in Files&quot; on Sat, 12 Oct 2019 20:34:13 GMT]]></title><description><![CDATA[<p dir="auto">Yes, you need a scripted solution, but when you were referred to that it was with the idea that it isn’t going to be super-simple…meaning that you aren’t going to find commands to make what you want happen that are similar to <code>editor.copy()</code>.  You will have to integrate some <code>editor</code> object commands with some Python function calls to achieve the goal.  In a couple of days I may have some time to work up an example for you if nobody does before then…</p>
<p dir="auto">Side note: It isn’t reasonably practical to get the results of such searching in the Notepad++ Find-result window.  But…there are some perhaps reasonable alternatives to that.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/47771</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/47771</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Sat, 12 Oct 2019 20:34:13 GMT</pubDate></item></channel></rss>