<?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[My macro is not recording the selection of text.]]></title><description><![CDATA[<p dir="auto">I have several URLs in a single text file that look like this:</p>
<p dir="auto"><code>https://crapwebsite.com/?blah blah blah...random series of letters &amp; numbersu2=https%3A%2F%2Fwww.ebay.com%2Fitm%2FASICS-Mens-Hypergel-Yu-Running-Shoes-1021A065%2F114495561241</code></p>
<p dir="auto">I recorded a very simple macro but it’s not recording the very 1st step where I select all of the text.<br />
Step 1: Ctrl + A (in order to select all the text)<br />
Step 2: Plugins menu &gt; MIME tools &gt; URL decode<br />
Step 3: do some more stuff with the URL string.</p>
<p dir="auto">I have no problems with Step 2 &amp; 3.  How can I get Notepad++ to record my first step?  For some reason it’s not recording the selection of text procedure.</p>
<p dir="auto">-–</p>
<p dir="auto"><em>moderator added code markdown around text; please don’t forget to <a href="https://community.notepad-plus-plus.org/topic/21925/faq-desk-formatting-forum-posts">use the <code>&lt;/&gt;</code> button to mark example text as “code”</a> so that characters don’t get changed by the forum</em></p>
]]></description><link>https://community.notepad-plus-plus.org/topic/20529/my-macro-is-not-recording-the-selection-of-text</link><generator>RSS for Node</generator><lastBuildDate>Sun, 10 May 2026 04:35:54 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/20529.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 29 Dec 2020 22:40:31 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to My macro is not recording the selection of text. on Mon, 02 Aug 2021 12:59:51 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/stephen-rieger" aria-label="Profile: Stephen-Rieger">@<bdi>Stephen-Rieger</bdi></a> said in <a href="/post/68489">My macro is not recording the selection of text.</a>:</p>
<blockquote>
<p dir="auto">changed the ‘Command ID’ for this <strong>Plugins &gt; MIME Tools &gt; URL Decode</strong> for me from 22011 to 22027.</p>
</blockquote>
<p dir="auto">Plugins have always been dynamically assigned their command ID numbers – it goes sequentially starting at 22000 and assigning them based on the order of the menu entries for each plugin, where each plugin is processed alphabetically (by DLL name, IIRC).</p>
<p dir="auto">Any time you change your plugin list – whether it’s because you add or remove a plugin, or if you upgrade to a new Notepad++ version and that changes the number of entries in one of the default plugins or you accidentally forget to install a plugin or you decide you want an extra plugin or if the new version of Notepad++ tells you about an update on one of your plugins so you update that plugin and it has more menu entries – any time any of those changes occur, the command ID for that plugin menu entry will change.  This has been true for the entire time I have used Notepad++ over the last decade or more.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/68496</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/68496</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Mon, 02 Aug 2021 12:59:51 GMT</pubDate></item><item><title><![CDATA[Reply to My macro is not recording the selection of text. on Mon, 02 Aug 2021 04:26:36 GMT]]></title><description><![CDATA[<p dir="auto">This issue is quite painful.</p>
<p dir="auto">The latest update to Notepad++ to 8.1.2 changed the ‘Command ID’ for this <strong>Plugins &gt; MIME Tools &gt; URL Decode</strong> for me from 22011 to 22027. It would be nice if some consistency could be maintained through updates such that macros don’t need to be edited.</p>
<p dir="auto">One saving point is that the change is consistent across multiple computers with the same updated version so I only need to use UI Spy on one machine so I can still maintain one consistent copy for multiple users.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/68489</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/68489</guid><dc:creator><![CDATA[Stephen Rieger]]></dc:creator><pubDate>Mon, 02 Aug 2021 04:26:36 GMT</pubDate></item><item><title><![CDATA[Reply to My macro is not recording the selection of text. on Wed, 30 Dec 2020 01:42:03 GMT]]></title><description><![CDATA[<p dir="auto">I’m updating this post with the screenshot of the correctly modified shortcuts.xml file in case someone does a search on this issue in the future.  This way he or she will have a reference for how to do this correctly without wasting too much time.</p>
<p dir="auto"><img src="/assets/uploads/files/1609292464563-shortcut-file-modified-correct-version.png" alt="shortcut file modified CORRECT version.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://community.notepad-plus-plus.org/post/61198</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/61198</guid><dc:creator><![CDATA[JustinJudo]]></dc:creator><pubDate>Wed, 30 Dec 2020 01:42:03 GMT</pubDate></item><item><title><![CDATA[Reply to My macro is not recording the selection of text. on Wed, 30 Dec 2020 01:29:57 GMT]]></title><description><![CDATA[<p dir="auto">Ah!  finally figured out the problem.  Through some trial &amp; error I figured out that I had inadvertently deleted a much needed line in my original macro and it was causing all the issues I had.  Luckily I had made a backup copy of my shortcuts.xml file onto another drive.</p>
<p dir="auto">Started over and followed your instructions for yet a 3rd time.  As the old saying goes, 3rd times is the charm.</p>
<p dir="auto">I appreciate the help on this Peter.  I’m all set now.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/61197</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/61197</guid><dc:creator><![CDATA[JustinJudo]]></dc:creator><pubDate>Wed, 30 Dec 2020 01:29:57 GMT</pubDate></item><item><title><![CDATA[Reply to My macro is not recording the selection of text. on Wed, 30 Dec 2020 00:56:35 GMT]]></title><description><![CDATA[<blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/justinjudo" aria-label="Profile: JustinJudo">@<bdi>JustinJudo</bdi></a> ,</p>
<p dir="auto">Your filename ends in <code>.txt</code>.  Notepad++ won’t recognize that as a config file.  Did you just do that temporarily to open with MS Notepad?</p>
</blockquote>
<p dir="auto">Yes I did, but I changed the file extension back to the original xml extension after editing the file accordingly.</p>
<blockquote>
<p dir="auto">I suggest you try to edit %AppData%\Notepad++\shortcuts.xml, and add in exactly the macro I showed, except with your wParam value.</p>
</blockquote>
<p dir="auto">I’ll try that and report back.  Thanks.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/61196</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/61196</guid><dc:creator><![CDATA[JustinJudo]]></dc:creator><pubDate>Wed, 30 Dec 2020 00:56:35 GMT</pubDate></item><item><title><![CDATA[Reply to My macro is not recording the selection of text. on Wed, 30 Dec 2020 00:52:33 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/justinjudo" aria-label="Profile: JustinJudo">@<bdi>JustinJudo</bdi></a> ,</p>
<p dir="auto">Your filename ends in <code>.txt</code>.  Notepad++ won’t recognize that as a config file.  Did you just do that temporarily to open with MS Notepad?</p>
<p dir="auto">Becase the macro I posted worked for me.  It took URL-encoded text, selected all, and replaced it with the decoded version.</p>
<p dir="auto">I suggest you try to edit <code>%AppData%\Notepad++\shortcuts.xml</code>, and add in exactly the macro I showed, except with your wParam value.  After you save the config file in the right location with the right name, you need to exit all copies of Notepad++ and then reload Notepad++ for the change to take effect.</p>
<p dir="auto">If it’s still not working, do a screenshot within Notepad++, showing the right <code>shortcuts.xml</code> open with the macro shown, and showing <strong>?</strong>-menu’s Debug Info, like:<br />
<img src="/assets/uploads/files/1609289484046-07c3078c-7531-4897-bf84-a46d520469f2-image.png" alt="07c3078c-7531-4897-bf84-a46d520469f2-image.png" class=" img-fluid img-markdown" /><br />
And, for good measure, show <strong>Macro</strong> menu, too… just to prove that UrlEncodeAll macro is really seen.<br />
<img src="/assets/uploads/files/1609289508921-0fc368c6-4c1f-41fe-9cc0-985b1840b558-image.png" alt="0fc368c6-4c1f-41fe-9cc0-985b1840b558-image.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://community.notepad-plus-plus.org/post/61195</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/61195</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Wed, 30 Dec 2020 00:52:33 GMT</pubDate></item><item><title><![CDATA[Reply to My macro is not recording the selection of text. on Wed, 30 Dec 2020 00:33:41 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/peterjones" aria-label="Profile: PeterJones">@<bdi>PeterJones</bdi></a> Peter I appreciate the reply and I did as you instructed but it’s still not working.  Here is what I have found:</p>
<ol>
<li>
<p dir="auto">the command ID for the plugin in question is 22011.<br />
<img src="/assets/uploads/files/1609288300599-url-decode-command-id.png" alt="URL decode command ID.png" class=" img-fluid img-markdown" /></p>
</li>
<li>
<p dir="auto">Closed Notepad++ application</p>
</li>
<li>
<p dir="auto">Located the shortcuts.xml file in my user profile and modified it accordingly.  (Or maybe I’ve screwed up somewhere?!<br />
<img src="/assets/uploads/files/1609288338025-shortcut-file-modified.png" alt="shortcut file modified.png" class=" img-fluid img-markdown" /></p>
</li>
</ol>
]]></description><link>https://community.notepad-plus-plus.org/post/61194</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/61194</guid><dc:creator><![CDATA[JustinJudo]]></dc:creator><pubDate>Wed, 30 Dec 2020 00:33:41 GMT</pubDate></item><item><title><![CDATA[Reply to My macro is not recording the selection of text. on Wed, 30 Dec 2020 00:07:53 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/justinjudo" aria-label="Profile: JustinJudo">@<bdi>JustinJudo</bdi></a> ,</p>
<p dir="auto">It’s actualy the <strong>Plugins &gt; MIME Tools &gt; URL Decode</strong> that isn’t recording.  You can see this by exiting and re-loading Notepad++, then opening <code>%AppData%\Notepad++\shortcuts.xml</code> and looking for whatever you named your macro.</p>
<p dir="auto">This is because it’s a plugin entry, with a non-fixed menuCommandID, so the macro-recorder doesn’t record that action, since if you install a new plugin, the next time Notepad++ runs, the <strong>URL Decode</strong> action might have a different ID.</p>
<p dir="auto">If you know what your <strong>URL Decode</strong> ID is, you can manually edit the <code>shortcuts.xml</code> to include that action.</p>
<ol>
<li>Install NPP UI Spy plugin via Plugins Admin</li>
<li>Use the UI Spy to see your <strong>URL Decode</strong> Command ID:<br />
<img src="/assets/uploads/files/1609286549461-0641d4d3-64d6-4178-97ee-ab8b7acba1ea-image.png" alt="0641d4d3-64d6-4178-97ee-ab8b7acba1ea-image.png" class=" img-fluid img-markdown" /><br />
mine is <code>22031</code></li>
<li>Exit Notepad++ completely (close all Notepad++ instances).  Restart Notepad++</li>
<li>In <code>%AppData%\Notepad++\shortcuts.xml</code>, add <code>&lt;Action type="2" message="0" wParam="22031" lParam="0" sParam="" /&gt;</code> – but use whatever ID your <strong>URL Decode</strong> uses right now</li>
<li>Save.  Exit Notepad++ completely.  Reload Notepad++.</li>
<li>Now your macro should do both.  You can look at <code>%AppData%\Notepad++\shortcuts.xml</code> to see the command is still there.  For me, I have <img src="/assets/uploads/files/1609286827019-0c950f20-2807-4987-b7d2-920aa1b65faa-image.png" alt="0c950f20-2807-4987-b7d2-920aa1b65faa-image.png" class=" img-fluid img-markdown" /></li>
</ol>
<p dir="auto"><strong>edit:</strong> If you ever install a new plugin, that command ID may change, and you may have to update your macro</p>
]]></description><link>https://community.notepad-plus-plus.org/post/61192</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/61192</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Wed, 30 Dec 2020 00:07:53 GMT</pubDate></item><item><title><![CDATA[Reply to My macro is not recording the selection of text. on Wed, 30 Dec 2020 00:03:58 GMT]]></title><description><![CDATA[<p dir="auto">OK after some troubleshooting, now I see the real issue here is that the macro utility does not record any user actions taken though the ‘Plugins’ menu:</p>
<p dir="auto">Plugins &gt; MIME tools &gt; URL decode.</p>
<p dir="auto">Any idea on how I can get Notepad++ to record step 2?</p>
]]></description><link>https://community.notepad-plus-plus.org/post/61191</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/61191</guid><dc:creator><![CDATA[JustinJudo]]></dc:creator><pubDate>Wed, 30 Dec 2020 00:03:58 GMT</pubDate></item><item><title><![CDATA[Reply to My macro is not recording the selection of text. on Tue, 29 Dec 2020 23:41:40 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/alan-kilborn" aria-label="Profile: Alan-Kilborn">@<bdi>Alan-Kilborn</bdi></a>  You’re right Alan. After reading your comment, I decided to create a test macro that only contains 1 step only.  Ctrl + A to select all of the text in the file.  It works just fine.  I can see all of the text has been selected.  So now this begs the question, what the hell is going on with Notepad++ between steps 1 &amp; 2?  This is very odd.  I ran my original macro again - it doesn’t do a single darn thing. :(</p>
]]></description><link>https://community.notepad-plus-plus.org/post/61190</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/61190</guid><dc:creator><![CDATA[JustinJudo]]></dc:creator><pubDate>Tue, 29 Dec 2020 23:41:40 GMT</pubDate></item><item><title><![CDATA[Reply to My macro is not recording the selection of text. on Tue, 29 Dec 2020 23:33:31 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/justinjudo" aria-label="Profile: JustinJudo">@<bdi>JustinJudo</bdi></a> said in <a href="/post/61188">My macro is not recording the selection of text.</a>:</p>
<blockquote>
<p dir="auto">Step 1: Ctrl + A (in order to select all the text)</p>
</blockquote>
<p dir="auto">That records into a macro just fine for me in Notepad++ 7.9.1.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/61189</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/61189</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Tue, 29 Dec 2020 23:33:31 GMT</pubDate></item></channel></rss>