<?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[How to edit the XML macros in NotePad++]]></title><description><![CDATA[<p dir="auto">Context: I want to automate the “search in files” for a certain list of strings for example</p>
<pre><code>myAwesomeVariable1
myAwesomeVariable2
myAwesomeVariable3
myAwesomeVariable4
</code></pre>
<p dir="auto">search for myAwesomeVariable1 show its results then myAwesomeVariable2 and so on, the resulats will be somthing like that</p>
<pre><code>Search "myAwesomeVariable1" (34 hits in 4 files)
Search "myAwesomeVariable2" (6 hits in 5 files)
Search "myAwesomeVariable3" (7 hits in 6 files)
Search "myAwesomeVariable4" (4 hits in 1 files)
</code></pre>
<p dir="auto">As solution I thought of using a macros which select the first element then “search in file” [using the CTRL+SHIFT+F] go the 2nd one and so on but when I looked at the code behind the macros i found the following</p>
<pre><code>&lt;Macro name="myMacrosSearcher" Ctrl="no" Alt="no" Shift="no" Key="0"&gt;
            &lt;Action type="3" message="1700" wParam="0" lParam="0" sParam="" /&gt;
            &lt;Action type="3" message="1601" wParam="0" lParam="0" sParam="myAwesomeVariable1" /&gt;
            &lt;Action type="3" message="1625" wParam="0" lParam="0" sParam="" /&gt;
            &lt;Action type="3" message="1653" wParam="0" lParam="0" sParam="my_path" /&gt;
            &lt;Action type="3" message="1652" wParam="0" lParam="0" sParam="*.txt*" /&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;   
        &lt;/Macro&gt;
</code></pre>
<p dir="auto">so the sParam for action “1601” is hard coded as myAwesomeVariable1 means each time I run this macros I get resulats of myAwesomeVariable1</p>
<p dir="auto">Question : what is the syntaxe so I can store my list in array of string then pass it to the sParam and repeat that in a loop so my code will be something like:</p>
<pre><code>&lt;Macro name="myMacrosSearcher" Ctrl="no" Alt="no" Shift="no" Key="0"&gt;
arrayOfString[4] = {myAwesomeVariable1, myAwesomeVariable2, myAwesomeVariable3, myAwesomeVariable4}
                for(i = 0;i&lt;3;i++)
                {
                &lt;Action type="3" message="1700" wParam="0" lParam="0" sParam="" /&gt;
                &lt;Action type="3" message="1601" wParam="0" lParam="0" sParam=arrayOfString[i] /&gt;
                &lt;Action type="3" message="1625" wParam="0" lParam="0" sParam="" /&gt;
                &lt;Action type="3" message="1653" wParam="0" lParam="0" sParam="my_path" /&gt;
                &lt;Action type="3" message="1652" wParam="0" lParam="0" sParam="*.txt*" /&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;   
                }
            &lt;/Macro&gt;
</code></pre>
]]></description><link>https://community.notepad-plus-plus.org/topic/18345/how-to-edit-the-xml-macros-in-notepad</link><generator>RSS for Node</generator><lastBuildDate>Fri, 10 Apr 2026 22:30:45 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/18345.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 07 Oct 2019 13:17:29 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to How to edit the XML macros in NotePad++ on Sat, 12 Oct 2019 18:24:26 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/7192">@dinkumoil</a> Thanks for the “FindStr” solution it seems to work but not in a “neat” way since the resulat are mixed and I want to stick to a <em>“NotePadian”</em> solution (this way I can get my hand dirty with some scripts and maybe plugin devloppement), my post here was to see the possibilities i can get by manipulating the macros file and not a repetition of the issue.<br />
currently I’m working on a script using PyhtonScript as you suggested and I’m sure the community will be great help for me</p>
<p dir="auto">cheers</p>
]]></description><link>https://community.notepad-plus-plus.org/post/47768</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/47768</guid><dc:creator><![CDATA[Arhack Bifrost]]></dc:creator><pubDate>Sat, 12 Oct 2019 18:24:26 GMT</pubDate></item><item><title><![CDATA[Reply to How to edit the XML macros in NotePad++ on Mon, 07 Oct 2019 15:28:59 GMT]]></title><description><![CDATA[<p dir="auto">@Oussama-Moustakim</p>
<p dir="auto">I already told you in <a href="https://community.notepad-plus-plus.org/topic/18333/how-to-do-multiple-search-for-a-list-of-strings">&gt;&gt;&gt; this thread &lt;&lt;&lt;</a> that you need a scripting solution <strong>or</strong> you use the <code>FindStr</code> workaround I’ve posted there.</p>
<p dir="auto">Your problem will not be solved only by repeating your question. If you don’t want to use my workaround, ask the community for help to script a proper solution instead of flooding the forum with the same question.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/47662</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/47662</guid><dc:creator><![CDATA[dinkumoil]]></dc:creator><pubDate>Mon, 07 Oct 2019 15:28:59 GMT</pubDate></item><item><title><![CDATA[Reply to How to edit the XML macros in NotePad++ on Mon, 07 Oct 2019 14:32:06 GMT]]></title><description><![CDATA[<p dir="auto">@gurikbal-singh thanks for your help, i already dulpicated it to make sure the approach is correct but isn’t “handy” assuming that I have 1000 terms to search for</p>
]]></description><link>https://community.notepad-plus-plus.org/post/47660</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/47660</guid><dc:creator><![CDATA[Arhack Bifrost]]></dc:creator><pubDate>Mon, 07 Oct 2019 14:32:06 GMT</pubDate></item><item><title><![CDATA[Reply to How to edit the XML macros in NotePad++ on Mon, 07 Oct 2019 14:00:32 GMT]]></title><description><![CDATA[<p dir="auto">simply replace in shortcuts.xml file from</p>
<pre><code>&lt;Macro name="myMacrosSearcher" Ctrl="no" Alt="no" Shift="no" Key="0"&gt;
            &lt;Action type="3" message="1700" wParam="0" lParam="0" sParam="" /&gt;
            &lt;Action type="3" message="1601" wParam="0" lParam="0" sParam="myAwesomeVariable1" /&gt;
            &lt;Action type="3" message="1625" wParam="0" lParam="0" sParam="" /&gt;
            &lt;Action type="3" message="1653" wParam="0" lParam="0" sParam="my_path" /&gt;
            &lt;Action type="3" message="1652" wParam="0" lParam="0" sParam="*.txt*" /&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;   
        &lt;/Macro&gt;
</code></pre>
<p dir="auto">to</p>
<pre><code>&lt;Macro name="myMacrosSearcher" Ctrl="no" Alt="no" Shift="no" Key="0"&gt;
            &lt;Action type="3" message="1700" wParam="0" lParam="0" sParam="" /&gt;
            &lt;Action type="3" message="1601" wParam="0" lParam="0" sParam="myAwesomeVariable1" /&gt;
            &lt;Action type="3" message="1625" wParam="0" lParam="0" sParam="" /&gt;
            &lt;Action type="3" message="1653" wParam="0" lParam="0" sParam="my_path" /&gt;
            &lt;Action type="3" message="1652" wParam="0" lParam="0" sParam="*.txt*" /&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;   

            &lt;Action type="3" message="1700" wParam="0" lParam="0" sParam="" /&gt;
            &lt;Action type="3" message="1601" wParam="0" lParam="0" sParam="myAwesomeVariable2" /&gt;
            &lt;Action type="3" message="1625" wParam="0" lParam="0" sParam="" /&gt;
            &lt;Action type="3" message="1653" wParam="0" lParam="0" sParam="my_path" /&gt;
            &lt;Action type="3" message="1652" wParam="0" lParam="0" sParam="*.txt*" /&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; 

            &lt;Action type="3" message="1700" wParam="0" lParam="0" sParam="" /&gt;
            &lt;Action type="3" message="1601" wParam="0" lParam="0" sParam="myAwesomeVariable3" /&gt;
            &lt;Action type="3" message="1625" wParam="0" lParam="0" sParam="" /&gt;
            &lt;Action type="3" message="1653" wParam="0" lParam="0" sParam="my_path" /&gt;
            &lt;Action type="3" message="1652" wParam="0" lParam="0" sParam="*.txt*" /&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; 			
        &lt;/Macro&gt;
</code></pre>
]]></description><link>https://community.notepad-plus-plus.org/post/47656</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/47656</guid><dc:creator><![CDATA[rinku singh]]></dc:creator><pubDate>Mon, 07 Oct 2019 14:00:32 GMT</pubDate></item></channel></rss>