<?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[HELP: Having trouble with Macros in v8.5.3 or later]]></title><description><![CDATA[<p dir="auto">This topic was created as a catch-all for people who need help with fixing their macros after switching to Notepad++ v8.5.3 (or later), but for whom <a href="/topic/24464/faq-desk-v8-5-3-macros-and-run-menu-commands">the FAQ</a> was not sufficient – the FAQ even directs you here to ask further questions about the situation.</p>
<p dir="auto">Admins might even move posts to be a part of this topic, rather than staying where they were originally asked.</p>
<p dir="auto">Please make sure that any post in this topic indicates that you have, in fact, read the FAQ, and have at least <em>tried</em> to follow the advice.  When you post here, please include the <strong>?</strong>-menu’s <strong>Debug Info</strong>, as well as the steps that you personally tried while trying to get your macros fixed.</p>
<p dir="auto">For those who have not seen the FAQ, click below:</p>
<h4><a href="https://community.notepad-plus-plus.org/topic/24464/faq-desk-v8-5-3-macros-and-run-menu-commands">FAQ Desk: v8.5.3 Macros and Run-Menu Commands</a></h4>
]]></description><link>https://community.notepad-plus-plus.org/topic/24477/help-having-trouble-with-macros-in-v8-5-3-or-later</link><generator>RSS for Node</generator><lastBuildDate>Tue, 12 May 2026 21:32:04 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/24477.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 18 May 2023 13:46:15 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to HELP: Having trouble with Macros in v8.5.3 or later on Tue, 12 Dec 2023 00:33:16 GMT]]></title><description><![CDATA[<p dir="auto"><em>Moderator Note: The contents of this post were moved to a separate topic, <a href="/topic/25235">Macro works normally, but fails when shortcut is Ctrl+Shift+C</a>, because it’s actually separate from the &gt;=v8.5.3 issue for this Topic.</em></p>
]]></description><link>https://community.notepad-plus-plus.org/post/91142</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/91142</guid><dc:creator><![CDATA[Mike Newman]]></dc:creator><pubDate>Tue, 12 Dec 2023 00:33:16 GMT</pubDate></item><item><title><![CDATA[Reply to HELP: Having trouble with Macros in v8.5.3 or later on Wed, 05 Jul 2023 14:08:39 GMT]]></title><description><![CDATA[<h3>Good News</h3>
<p dir="auto">It turns out that XML’s five predefined named-entities still work even in Notepad++ v8.5.3 and newer.  Also, the entities made up of two hex digits still work.</p>
<p dir="auto">The following macro shows the named entities that still work in macro sParam values with v8.5.3 and newer, as well as showing how to get a <code>CRLF</code> newline sequence using the two-hex-digit entities.  You can use this as an example for when you are manually editing your macros to work for v8.5.3 and newer:</p>
<pre><code class="language-xml">        &lt;Macro name="XML Named Entities" Ctrl="no" Alt="no" Shift="no" Key="0"&gt;
            &lt;Action type="1" message="2170" wParam="0" lParam="0" sParam="&amp;amp;" /&gt;
            &lt;Action type="1" message="2170" wParam="0" lParam="0" sParam="&amp;lt;" /&gt;
            &lt;Action type="1" message="2170" wParam="0" lParam="0" sParam="&amp;gt;" /&gt;
            &lt;Action type="1" message="2170" wParam="0" lParam="0" sParam="&amp;apos;" /&gt;
            &lt;Action type="1" message="2170" wParam="0" lParam="0" sParam="&amp;quot;" /&gt;
            &lt;Action type="1" message="2170" wParam="0" lParam="0" sParam="&amp;#x0D;" /&gt;
            &lt;Action type="1" message="2170" wParam="0" lParam="0" sParam="&amp;#x0A;" /&gt;
        &lt;/Macro&gt;
</code></pre>
<p dir="auto">And here are all the two-digit hex entities for ASCII characters from 1 to 127:</p>
<pre><code class="language-xml">        &lt;Macro name="ASCII 2-digit Hex Entities" Ctrl="no" Alt="no" Shift="no" Key="0"&gt;
            &lt;Action type="1" message="2170" wParam="0" lParam="0" sParam="&amp;#x01;" /&gt;
            &lt;Action type="1" message="2170" wParam="0" lParam="0" sParam="&amp;#x02;" /&gt;
            &lt;Action type="1" message="2170" wParam="0" lParam="0" sParam="&amp;#x03;" /&gt;
            &lt;Action type="1" message="2170" wParam="0" lParam="0" sParam="&amp;#x04;" /&gt;
            &lt;Action type="1" message="2170" wParam="0" lParam="0" sParam="&amp;#x05;" /&gt;
            &lt;Action type="1" message="2170" wParam="0" lParam="0" sParam="&amp;#x06;" /&gt;
            &lt;Action type="1" message="2170" wParam="0" lParam="0" sParam="&amp;#x07;" /&gt;
            &lt;Action type="1" message="2170" wParam="0" lParam="0" sParam="&amp;#x08;" /&gt;
            &lt;Action type="1" message="2170" wParam="0" lParam="0" sParam="&amp;#x09;" /&gt;
            &lt;Action type="1" message="2170" wParam="0" lParam="0" sParam="&amp;#x0a;" /&gt;
            &lt;Action type="1" message="2170" wParam="0" lParam="0" sParam="&amp;#x0b;" /&gt;
            &lt;Action type="1" message="2170" wParam="0" lParam="0" sParam="&amp;#x0c;" /&gt;
            &lt;Action type="1" message="2170" wParam="0" lParam="0" sParam="&amp;#x0d;" /&gt;
            &lt;Action type="1" message="2170" wParam="0" lParam="0" sParam="&amp;#x0e;" /&gt;
            &lt;Action type="1" message="2170" wParam="0" lParam="0" sParam="&amp;#x0f;" /&gt;
            &lt;Action type="1" message="2170" wParam="0" lParam="0" sParam="&amp;#x0D;" /&gt;
            &lt;Action type="1" message="2170" wParam="0" lParam="0" sParam="&amp;#x0A;" /&gt;
            &lt;Action type="1" message="2170" wParam="0" lParam="0" sParam="&amp;#x10;" /&gt;
            &lt;Action type="1" message="2170" wParam="0" lParam="0" sParam="&amp;#x11;" /&gt;
            &lt;Action type="1" message="2170" wParam="0" lParam="0" sParam="&amp;#x12;" /&gt;
            &lt;Action type="1" message="2170" wParam="0" lParam="0" sParam="&amp;#x13;" /&gt;
            &lt;Action type="1" message="2170" wParam="0" lParam="0" sParam="&amp;#x14;" /&gt;
            &lt;Action type="1" message="2170" wParam="0" lParam="0" sParam="&amp;#x15;" /&gt;
            &lt;Action type="1" message="2170" wParam="0" lParam="0" sParam="&amp;#x16;" /&gt;
            &lt;Action type="1" message="2170" wParam="0" lParam="0" sParam="&amp;#x17;" /&gt;
            &lt;Action type="1" message="2170" wParam="0" lParam="0" sParam="&amp;#x18;" /&gt;
            &lt;Action type="1" message="2170" wParam="0" lParam="0" sParam="&amp;#x19;" /&gt;
            &lt;Action type="1" message="2170" wParam="0" lParam="0" sParam="&amp;#x1a;" /&gt;
            &lt;Action type="1" message="2170" wParam="0" lParam="0" sParam="&amp;#x1b;" /&gt;
            &lt;Action type="1" message="2170" wParam="0" lParam="0" sParam="&amp;#x1c;" /&gt;
            &lt;Action type="1" message="2170" wParam="0" lParam="0" sParam="&amp;#x1d;" /&gt;
            &lt;Action type="1" message="2170" wParam="0" lParam="0" sParam="&amp;#x1e;" /&gt;
            &lt;Action type="1" message="2170" wParam="0" lParam="0" sParam="&amp;#x1f;" /&gt;
            &lt;Action type="1" message="2170" wParam="0" lParam="0" sParam="&amp;#x0D;" /&gt;
            &lt;Action type="1" message="2170" wParam="0" lParam="0" sParam="&amp;#x0A;" /&gt;
            &lt;Action type="1" message="2170" wParam="0" lParam="0" sParam="&amp;#x20;" /&gt;
            &lt;Action type="1" message="2170" wParam="0" lParam="0" sParam="&amp;#x21;" /&gt;
            &lt;Action type="1" message="2170" wParam="0" lParam="0" sParam="&amp;#x22;" /&gt;
            &lt;Action type="1" message="2170" wParam="0" lParam="0" sParam="&amp;#x23;" /&gt;
            &lt;Action type="1" message="2170" wParam="0" lParam="0" sParam="&amp;#x24;" /&gt;
            &lt;Action type="1" message="2170" wParam="0" lParam="0" sParam="&amp;#x25;" /&gt;
            &lt;Action type="1" message="2170" wParam="0" lParam="0" sParam="&amp;#x26;" /&gt;
            &lt;Action type="1" message="2170" wParam="0" lParam="0" sParam="&amp;#x27;" /&gt;
            &lt;Action type="1" message="2170" wParam="0" lParam="0" sParam="&amp;#x28;" /&gt;
            &lt;Action type="1" message="2170" wParam="0" lParam="0" sParam="&amp;#x29;" /&gt;
            &lt;Action type="1" message="2170" wParam="0" lParam="0" sParam="&amp;#x2a;" /&gt;
            &lt;Action type="1" message="2170" wParam="0" lParam="0" sParam="&amp;#x2b;" /&gt;
            &lt;Action type="1" message="2170" wParam="0" lParam="0" sParam="&amp;#x2c;" /&gt;
            &lt;Action type="1" message="2170" wParam="0" lParam="0" sParam="&amp;#x2d;" /&gt;
            &lt;Action type="1" message="2170" wParam="0" lParam="0" sParam="&amp;#x2e;" /&gt;
            &lt;Action type="1" message="2170" wParam="0" lParam="0" sParam="&amp;#x2f;" /&gt;
            &lt;Action type="1" message="2170" wParam="0" lParam="0" sParam="&amp;#x0D;" /&gt;
            &lt;Action type="1" message="2170" wParam="0" lParam="0" sParam="&amp;#x0A;" /&gt;
            &lt;Action type="1" message="2170" wParam="0" lParam="0" sParam="&amp;#x30;" /&gt;
            &lt;Action type="1" message="2170" wParam="0" lParam="0" sParam="&amp;#x31;" /&gt;
            &lt;Action type="1" message="2170" wParam="0" lParam="0" sParam="&amp;#x32;" /&gt;
            &lt;Action type="1" message="2170" wParam="0" lParam="0" sParam="&amp;#x33;" /&gt;
            &lt;Action type="1" message="2170" wParam="0" lParam="0" sParam="&amp;#x34;" /&gt;
            &lt;Action type="1" message="2170" wParam="0" lParam="0" sParam="&amp;#x35;" /&gt;
            &lt;Action type="1" message="2170" wParam="0" lParam="0" sParam="&amp;#x36;" /&gt;
            &lt;Action type="1" message="2170" wParam="0" lParam="0" sParam="&amp;#x37;" /&gt;
            &lt;Action type="1" message="2170" wParam="0" lParam="0" sParam="&amp;#x38;" /&gt;
            &lt;Action type="1" message="2170" wParam="0" lParam="0" sParam="&amp;#x39;" /&gt;
            &lt;Action type="1" message="2170" wParam="0" lParam="0" sParam="&amp;#x3a;" /&gt;
            &lt;Action type="1" message="2170" wParam="0" lParam="0" sParam="&amp;#x3b;" /&gt;
            &lt;Action type="1" message="2170" wParam="0" lParam="0" sParam="&amp;#x3c;" /&gt;
            &lt;Action type="1" message="2170" wParam="0" lParam="0" sParam="&amp;#x3d;" /&gt;
            &lt;Action type="1" message="2170" wParam="0" lParam="0" sParam="&amp;#x3e;" /&gt;
            &lt;Action type="1" message="2170" wParam="0" lParam="0" sParam="&amp;#x3f;" /&gt;
            &lt;Action type="1" message="2170" wParam="0" lParam="0" sParam="&amp;#x0D;" /&gt;
            &lt;Action type="1" message="2170" wParam="0" lParam="0" sParam="&amp;#x0A;" /&gt;
            &lt;Action type="1" message="2170" wParam="0" lParam="0" sParam="&amp;#x40;" /&gt;
            &lt;Action type="1" message="2170" wParam="0" lParam="0" sParam="&amp;#x41;" /&gt;
            &lt;Action type="1" message="2170" wParam="0" lParam="0" sParam="&amp;#x42;" /&gt;
            &lt;Action type="1" message="2170" wParam="0" lParam="0" sParam="&amp;#x43;" /&gt;
            &lt;Action type="1" message="2170" wParam="0" lParam="0" sParam="&amp;#x44;" /&gt;
            &lt;Action type="1" message="2170" wParam="0" lParam="0" sParam="&amp;#x45;" /&gt;
            &lt;Action type="1" message="2170" wParam="0" lParam="0" sParam="&amp;#x46;" /&gt;
            &lt;Action type="1" message="2170" wParam="0" lParam="0" sParam="&amp;#x47;" /&gt;
            &lt;Action type="1" message="2170" wParam="0" lParam="0" sParam="&amp;#x48;" /&gt;
            &lt;Action type="1" message="2170" wParam="0" lParam="0" sParam="&amp;#x49;" /&gt;
            &lt;Action type="1" message="2170" wParam="0" lParam="0" sParam="&amp;#x4a;" /&gt;
            &lt;Action type="1" message="2170" wParam="0" lParam="0" sParam="&amp;#x4b;" /&gt;
            &lt;Action type="1" message="2170" wParam="0" lParam="0" sParam="&amp;#x4c;" /&gt;
            &lt;Action type="1" message="2170" wParam="0" lParam="0" sParam="&amp;#x4d;" /&gt;
            &lt;Action type="1" message="2170" wParam="0" lParam="0" sParam="&amp;#x4e;" /&gt;
            &lt;Action type="1" message="2170" wParam="0" lParam="0" sParam="&amp;#x4f;" /&gt;
            &lt;Action type="1" message="2170" wParam="0" lParam="0" sParam="&amp;#x0D;" /&gt;
            &lt;Action type="1" message="2170" wParam="0" lParam="0" sParam="&amp;#x0A;" /&gt;
            &lt;Action type="1" message="2170" wParam="0" lParam="0" sParam="&amp;#x50;" /&gt;
            &lt;Action type="1" message="2170" wParam="0" lParam="0" sParam="&amp;#x51;" /&gt;
            &lt;Action type="1" message="2170" wParam="0" lParam="0" sParam="&amp;#x52;" /&gt;
            &lt;Action type="1" message="2170" wParam="0" lParam="0" sParam="&amp;#x53;" /&gt;
            &lt;Action type="1" message="2170" wParam="0" lParam="0" sParam="&amp;#x54;" /&gt;
            &lt;Action type="1" message="2170" wParam="0" lParam="0" sParam="&amp;#x55;" /&gt;
            &lt;Action type="1" message="2170" wParam="0" lParam="0" sParam="&amp;#x56;" /&gt;
            &lt;Action type="1" message="2170" wParam="0" lParam="0" sParam="&amp;#x57;" /&gt;
            &lt;Action type="1" message="2170" wParam="0" lParam="0" sParam="&amp;#x58;" /&gt;
            &lt;Action type="1" message="2170" wParam="0" lParam="0" sParam="&amp;#x59;" /&gt;
            &lt;Action type="1" message="2170" wParam="0" lParam="0" sParam="&amp;#x5a;" /&gt;
            &lt;Action type="1" message="2170" wParam="0" lParam="0" sParam="&amp;#x5b;" /&gt;
            &lt;Action type="1" message="2170" wParam="0" lParam="0" sParam="&amp;#x5c;" /&gt;
            &lt;Action type="1" message="2170" wParam="0" lParam="0" sParam="&amp;#x5d;" /&gt;
            &lt;Action type="1" message="2170" wParam="0" lParam="0" sParam="&amp;#x5e;" /&gt;
            &lt;Action type="1" message="2170" wParam="0" lParam="0" sParam="&amp;#x5f;" /&gt;
            &lt;Action type="1" message="2170" wParam="0" lParam="0" sParam="&amp;#x0D;" /&gt;
            &lt;Action type="1" message="2170" wParam="0" lParam="0" sParam="&amp;#x0A;" /&gt;
            &lt;Action type="1" message="2170" wParam="0" lParam="0" sParam="&amp;#x60;" /&gt;
            &lt;Action type="1" message="2170" wParam="0" lParam="0" sParam="&amp;#x61;" /&gt;
            &lt;Action type="1" message="2170" wParam="0" lParam="0" sParam="&amp;#x62;" /&gt;
            &lt;Action type="1" message="2170" wParam="0" lParam="0" sParam="&amp;#x63;" /&gt;
            &lt;Action type="1" message="2170" wParam="0" lParam="0" sParam="&amp;#x64;" /&gt;
            &lt;Action type="1" message="2170" wParam="0" lParam="0" sParam="&amp;#x65;" /&gt;
            &lt;Action type="1" message="2170" wParam="0" lParam="0" sParam="&amp;#x66;" /&gt;
            &lt;Action type="1" message="2170" wParam="0" lParam="0" sParam="&amp;#x67;" /&gt;
            &lt;Action type="1" message="2170" wParam="0" lParam="0" sParam="&amp;#x68;" /&gt;
            &lt;Action type="1" message="2170" wParam="0" lParam="0" sParam="&amp;#x69;" /&gt;
            &lt;Action type="1" message="2170" wParam="0" lParam="0" sParam="&amp;#x6a;" /&gt;
            &lt;Action type="1" message="2170" wParam="0" lParam="0" sParam="&amp;#x6b;" /&gt;
            &lt;Action type="1" message="2170" wParam="0" lParam="0" sParam="&amp;#x6c;" /&gt;
            &lt;Action type="1" message="2170" wParam="0" lParam="0" sParam="&amp;#x6d;" /&gt;
            &lt;Action type="1" message="2170" wParam="0" lParam="0" sParam="&amp;#x6e;" /&gt;
            &lt;Action type="1" message="2170" wParam="0" lParam="0" sParam="&amp;#x6f;" /&gt;
            &lt;Action type="1" message="2170" wParam="0" lParam="0" sParam="&amp;#x0D;" /&gt;
            &lt;Action type="1" message="2170" wParam="0" lParam="0" sParam="&amp;#x0A;" /&gt;
            &lt;Action type="1" message="2170" wParam="0" lParam="0" sParam="&amp;#x70;" /&gt;
            &lt;Action type="1" message="2170" wParam="0" lParam="0" sParam="&amp;#x71;" /&gt;
            &lt;Action type="1" message="2170" wParam="0" lParam="0" sParam="&amp;#x72;" /&gt;
            &lt;Action type="1" message="2170" wParam="0" lParam="0" sParam="&amp;#x73;" /&gt;
            &lt;Action type="1" message="2170" wParam="0" lParam="0" sParam="&amp;#x74;" /&gt;
            &lt;Action type="1" message="2170" wParam="0" lParam="0" sParam="&amp;#x75;" /&gt;
            &lt;Action type="1" message="2170" wParam="0" lParam="0" sParam="&amp;#x76;" /&gt;
            &lt;Action type="1" message="2170" wParam="0" lParam="0" sParam="&amp;#x77;" /&gt;
            &lt;Action type="1" message="2170" wParam="0" lParam="0" sParam="&amp;#x78;" /&gt;
            &lt;Action type="1" message="2170" wParam="0" lParam="0" sParam="&amp;#x79;" /&gt;
            &lt;Action type="1" message="2170" wParam="0" lParam="0" sParam="&amp;#x7a;" /&gt;
            &lt;Action type="1" message="2170" wParam="0" lParam="0" sParam="&amp;#x7b;" /&gt;
            &lt;Action type="1" message="2170" wParam="0" lParam="0" sParam="&amp;#x7c;" /&gt;
            &lt;Action type="1" message="2170" wParam="0" lParam="0" sParam="&amp;#x7d;" /&gt;
            &lt;Action type="1" message="2170" wParam="0" lParam="0" sParam="&amp;#x7e;" /&gt;
            &lt;Action type="1" message="2170" wParam="0" lParam="0" sParam="&amp;#x7f;" /&gt;
            &lt;Action type="1" message="2170" wParam="0" lParam="0" sParam="&amp;#x0D;" /&gt;
            &lt;Action type="1" message="2170" wParam="0" lParam="0" sParam="&amp;#x0A;" /&gt;
        &lt;/Macro&gt;
</code></pre>
<p dir="auto">The <a href="https://community.notepad-plus-plus.org/topic/24464/faq-desk-v8-5-3-and-newer-macros-and-run-menu-commands">FAQ</a> has been updated to match this new information.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/87641</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/87641</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Wed, 05 Jul 2023 14:08:39 GMT</pubDate></item><item><title><![CDATA[Reply to HELP: Having trouble with Macros in v8.5.3 or later on Thu, 01 Jun 2023 11:30:49 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/cement-knight" aria-label="Profile: Cement-Knight">@<bdi>Cement-Knight</bdi></a> said in <a href="/post/86716">HELP: Having trouble with Macros in v8.5.3 or later</a>:</p>
<blockquote>
<p dir="auto">Moving to the next bookmark does not work inside a macro. No matter where the cursor is, it will always go to a specific bookmark.</p>
</blockquote>
<p dir="auto">You might want to start a new thread with that, as it is very unrelated to previous conversation in this thread.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/86717</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/86717</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Thu, 01 Jun 2023 11:30:49 GMT</pubDate></item><item><title><![CDATA[Reply to HELP: Having trouble with Macros in v8.5.3 or later on Thu, 01 Jun 2023 11:26:52 GMT]]></title><description><![CDATA[<p dir="auto">Moving to the next bookmark does not work inside a macro. No matter where the cursor is, it will always go to a specific bookmark.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/86716</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/86716</guid><dc:creator><![CDATA[Cement Knight]]></dc:creator><pubDate>Thu, 01 Jun 2023 11:26:52 GMT</pubDate></item><item><title><![CDATA[Reply to HELP: Having trouble with Macros in v8.5.3 or later on Sat, 27 May 2023 07:04:35 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/datatraveller1" aria-label="Profile: datatraveller1">@<bdi>datatraveller1</bdi></a> said in <a href="/post/86535">HELP: Having trouble with Macros in v8.5.3 or later</a>:</p>
<blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/wonkawilly" aria-label="Profile: wonkawilly">@<bdi>wonkawilly</bdi></a> As far as I have understood <a class="plugin-mentions-user plugin-mentions-a" href="/user/guy038" aria-label="Profile: guy038">@<bdi>guy038</bdi></a> and the FAQ, you simply have to replace the old values UTF-8 encoded literally with <code>è</code>, <code>à</code> etc.</p>
<p dir="auto">I’m not sure if something like Python would work for the macro system but I partly agree that it is a bit ugly sometimes - In my case I don’t like that real line breaks get inserted into shortcuts.xml.</p>
</blockquote>
<p dir="auto">It should be good enough to see it replaced with “\r\n” as in regular expression syntax. Nevertheless, that solution would of course be good just to “survive”, not in the long run, because nevertheless the optimus would be to have a complete new macro system as in LibreOffice, MsOffice and so on. It would be a huge improvement even replacing the current macro system in npp with a new macro system based on AutoIt language and macro recorder.<br />
The current macro system is too cryptic and too limited. Compare this row<br />
&lt;Action type=“1” message=“2170” wParam=“0” lParam=“0” sParam=“è” /&gt;<br />
with its equivalent in a simple scripting language in which you can even do loops or if/else and so much more.<br />
IMHO the current macro system in N++ is going old… and really needs retirement, better sooner than later…<br />
Also another ugly thing is that n++ saves new recorded macros only on exit: it would be better to save new created macros <strong>on click on the Save Macro button</strong> so they could be edited without the need of restarting npp: other ugly and incomprehensible thing.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/86596</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/86596</guid><dc:creator><![CDATA[wonkawilly]]></dc:creator><pubDate>Sat, 27 May 2023 07:04:35 GMT</pubDate></item><item><title><![CDATA[Reply to HELP: Having trouble with Macros in v8.5.3 or later on Fri, 26 May 2023 16:31:28 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/guy038" aria-label="Profile: guy038">@<bdi>guy038</bdi></a> and <a class="plugin-mentions-user plugin-mentions-a" href="/user/peterjones" aria-label="Profile: PeterJones">@<bdi>PeterJones</bdi></a> THANK YOU SO MUCH, I’ve solved. &lt;3</p>
]]></description><link>https://community.notepad-plus-plus.org/post/86588</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/86588</guid><dc:creator><![CDATA[Massimo Piscopo]]></dc:creator><pubDate>Fri, 26 May 2023 16:31:28 GMT</pubDate></item><item><title><![CDATA[Reply to HELP: Having trouble with Macros in v8.5.3 or later on Thu, 25 May 2023 18:38:46 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/massimo-piscopo" aria-label="Profile: Massimo-Piscopo">@<bdi>Massimo-Piscopo</bdi></a> ,</p>
<blockquote>
<p dir="auto">I don’t find it in <code>shortcuts.xml</code></p>
</blockquote>
<p dir="auto">It’s there, or your macro doesn’t exist when you exit Notepad++ and restart.  Did you look in the <em>right</em> <code>shortcuts.xml</code>?</p>
<p dir="auto">If you had read the first post in this discussion, you would have seen the we asked you to supply your <strong>?</strong>-menu’s <strong>Debug Info</strong>.  Because you chose not to do so, we have to <em>assume</em> the location of your <code>shortcuts.xml</code> is in <code>%AppData%\Notepad++\shortcuts.xml</code>, as <a class="plugin-mentions-user plugin-mentions-a" href="/user/guy038" aria-label="Profile: guy038">@<bdi>guy038</bdi></a> guessed while I was typing this.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/86572</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/86572</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Thu, 25 May 2023 18:38:46 GMT</pubDate></item><item><title><![CDATA[Reply to HELP: Having trouble with Macros in v8.5.3 or later on Thu, 25 May 2023 18:34:30 GMT]]></title><description><![CDATA[<p dir="auto">Hello, <a class="plugin-mentions-user plugin-mentions-a" href="/user/massimo-piscopo" aria-label="Profile: massimo-piscopo">@<bdi>massimo-piscopo</bdi></a> and <strong>All</strong>,</p>
<p dir="auto">I suppose that you have a <strong>standard</strong> installation with N++ installer ! Then, you must look for the <strong>real</strong> location of your <strong><code>shortcuts.xml</code></strong> file !</p>
<hr />
<p dir="auto">Follow the steps, below :</p>
<ul>
<li>
<p dir="auto">Open your Notepad++ <strong><code>v8.5.3</code></strong>, as usual</p>
</li>
<li>
<p dir="auto">Click on the <strong><code>Windows Logo</code></strong> key and, simultaneously, hit the <strong><code>R</code></strong>  key</p>
</li>
<li>
<p dir="auto">In the <strong>Execute</strong> window, type in <strong><code>Explorer.exe</code></strong> and hit the <strong><code>Enter</code></strong> key</p>
</li>
</ul>
<p dir="auto">=&gt; The <strong>File Explorer</strong>  program should start</p>
<ul>
<li>
<p dir="auto">Clic on the ‘STAR’ and type in the string <strong><code>%appdata%\Notepad++</code></strong></p>
</li>
<li>
<p dir="auto">Valid with the <strong><code>Enter</code></strong> key</p>
</li>
</ul>
<p dir="auto">=&gt; You should normally see a <strong><code>shortcuts.xml</code></strong> file, along with some others files</p>
<ul>
<li>Clic on the <strong><code>shortcuts.xml</code></strong> file and <strong>drag</strong> this file  into your <strong>notepad++</strong> window</li>
</ul>
<p dir="auto">=&gt; You should see, in the <strong><code>&lt;Macros&gt;</code></strong> section, your macro named <strong><code>calcio (prime correczioni)</code></strong></p>
<ul>
<li>
<p dir="auto">Now, open the <strong>Replace</strong> dialog ( <strong><code>Ctrl + H</code></strong> )</p>
</li>
<li>
<p dir="auto"><strong>Untick</strong> all <strong>box</strong> options</p>
</li>
<li>
<p dir="auto">SEARCH  <strong><code>&amp;#x2018;</code></strong></p>
</li>
<li>
<p dir="auto">REPLACE <strong><code>\x{2018}</code></strong></p>
</li>
<li>
<p dir="auto">Check the <strong><code>wrap around</code></strong> option</p>
</li>
<li>
<p dir="auto">Select the <strong><code>Regular expression</code></strong> search <strong>mode</strong> ( <em>IMPORTANT</em> )</p>
</li>
<li>
<p dir="auto">Click on the  <strong><code>Replace All</code></strong> button</p>
</li>
<li>
<p dir="auto"><strong>Save</strong> the changes of your <strong><code>shortcuts.xml</code></strong> file</p>
</li>
<li>
<p dir="auto">Close Notepad++</p>
</li>
<li>
<p dir="auto">Restart Notepad++</p>
</li>
</ul>
<p dir="auto">=&gt; Your macro should be <strong>OK</strong> and do what it is designed for :-)</p>
<p dir="auto">Best Regards,</p>
<p dir="auto">guy038</p>
]]></description><link>https://community.notepad-plus-plus.org/post/86571</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/86571</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Thu, 25 May 2023 18:34:30 GMT</pubDate></item><item><title><![CDATA[Reply to HELP: Having trouble with Macros in v8.5.3 or later on Thu, 25 May 2023 16:53:59 GMT]]></title><description><![CDATA[<p dir="auto">I’ve a similar problem.<br />
I’ve created a macro doing a lot of things, included changing “word” into ‘word’ (look for ‘ ’ instead of " ").<br />
This worked ok until last update (8.5.3, build May 15 2023 06:07:16).<br />
Now the macro (I don’have touched it) change “word” into</p>
<p dir="auto">&amp; # x 2 0 1 8 ; w o r d &amp; # x 2 0 1 8 ;</p>
<p dir="auto">Please ignore spaces: if I don’t insert spaces, this forum convert  “&amp; # x 2 0 1 8 ; w o r d &amp; # x 2 0 1 8 ;” into " ‘word’ " and it’s impossible to understand what I mean.<br />
I need Notepad++ don’t “convert” the ‘ ’ symbols.</p>
<p dir="auto">I’ve tried to search my macro recorded but I don’t find it in shortcuts.xml. Where I can find it? My macro is called “calcio (prime correzioni)” but in shortcuts.xml I find only “Trim Trailing Space and Save”. BTW the date of shortcuts.xml is from 2021 and maybe my macro was created after.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/86570</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/86570</guid><dc:creator><![CDATA[Massimo Piscopo]]></dc:creator><pubDate>Thu, 25 May 2023 16:53:59 GMT</pubDate></item><item><title><![CDATA[Reply to HELP: Having trouble with Macros in v8.5.3 or later on Thu, 25 May 2023 11:50:19 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/guy038" aria-label="Profile: guy038">@<bdi>guy038</bdi></a> said in <a href="/post/86561">HELP: Having trouble with Macros in v8.5.3 or later</a>:</p>
<blockquote>
<p dir="auto">Note the contents of the macros Test_CRLF , Test_LF</p>
</blockquote>
<p dir="auto">I can duplicate your poor results with these two. :-(</p>
<blockquote>
<p dir="auto">if we should trigger an GitHub issue for these oddities ??</p>
</blockquote>
<p dir="auto">Either that, or post about it in the 8.5.3 release thread, <a href="https://community.notepad-plus-plus.org/topic/24462/notepad-v8-5-3-release">HERE</a>.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/86564</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/86564</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Thu, 25 May 2023 11:50:19 GMT</pubDate></item><item><title><![CDATA[Reply to HELP: Having trouble with Macros in v8.5.3 or later on Thu, 25 May 2023 07:23:31 GMT]]></title><description><![CDATA[<p dir="auto">Hello, <a class="plugin-mentions-user plugin-mentions-a" href="/user/wonkawilly" aria-label="Profile: wonkawilly">@<bdi>wonkawilly</bdi></a>, <a class="plugin-mentions-user plugin-mentions-a" href="/user/datatraveller1" aria-label="Profile: datatraveller1">@<bdi>datatraveller1</bdi></a>, <a class="plugin-mentions-user plugin-mentions-a" href="/user/alan-kilborn" aria-label="Profile: alan-kilborn">@<bdi>alan-kilborn</bdi></a> and <strong>all</strong>,</p>
<p dir="auto">Oh… Of course, I forgot to mention that, in my <strong>previous</strong> posts, I refered to macros <strong>already</strong> created by a user with a N++ version <strong>prior</strong> to <strong><code>v8.5.3</code></strong> !</p>
<p dir="auto">If, with N++ <strong><code>v.8.5.3</code></strong>, you just create a <strong>new</strong> macro, containing <strong>one</strong> or <strong>several</strong> line-break(s), it’ll be <strong>correctly</strong> recorded !</p>
<p dir="auto">However, I noticed some <strong>oddities</strong> when recording these <strong>line-breaks</strong> !</p>
<hr />
<p dir="auto">Follow these different actions for testing :</p>
<ul>
<li>
<p dir="auto">Open N++ <strong><code>v.8.5.3</code></strong></p>
</li>
<li>
<p dir="auto">Open a <strong>new</strong> tab</p>
</li>
<li>
<p dir="auto">If the line-break <strong>format</strong> of the <strong>new</strong> tab is not <strong><code>Windows (CR LF)</code></strong>, in the <strong>status</strong> bar, <strong>change</strong> it with the command <strong><code>Edit &gt; EOL Conversion &gt; Windows (CR LF)</code></strong></p>
</li>
<li>
<p dir="auto">Start recording a macro with the command <strong><code>Macro &gt; Start Recording</code></strong></p>
</li>
<li>
<p dir="auto">In the <strong>new</strong> tab, just type in the string <strong><code>ABC</code></strong> and hit the <strong><code>Enter</code></strong> key</p>
</li>
<li>
<p dir="auto">Then, type in the string <strong><code>DEF</code></strong> and hit , again, the <strong><code>Enter</code></strong> key</p>
</li>
<li>
<p dir="auto">Stop recording the <strong>current</strong> macro with the command <strong><code>Macro &gt; Stop Recording</code></strong></p>
</li>
<li>
<p dir="auto">Click on the the menu option <strong><code>Macro &gt; Save Current Recorded Macro...</code></strong></p>
</li>
<li>
<p dir="auto">Give the name <strong><code>Test_CRLF</code></strong> to this macro</p>
</li>
<li></li>
<li>
<p dir="auto"><strong>Delete</strong> all contents of this <strong>new</strong> tab with a <strong><code>Ctrl + Z</code></strong> operation</p>
</li>
<li>
<p dir="auto">Change the <strong>EOL</strong> format of the <strong>new</strong> tab to <strong>Unix</strong>, with the command <strong><code>Edit &gt; EOL Conversion &gt; Unix (LF)</code></strong></p>
</li>
<li>
<p dir="auto">Start recording a macro with the command <strong><code>Macro &gt; Start Recording</code></strong></p>
</li>
<li>
<p dir="auto">In the <strong>new</strong> tab, just type in the string <strong><code>GHI</code></strong> and hit the <strong><code>Enter</code></strong> key</p>
</li>
<li>
<p dir="auto">Then, type in the string <strong><code>JKL</code></strong> and hit , again, the <strong><code>Enter</code></strong> key</p>
</li>
<li>
<p dir="auto">Stop recording the <strong>current</strong> macro with the command <strong><code>Macro &gt; Stop Recording</code></strong></p>
</li>
<li>
<p dir="auto">Click on the the menu option <strong><code>Macro &gt; Save Current Recorded Macro...</code></strong></p>
</li>
<li>
<p dir="auto">Give the name <strong><code>Test_LF</code></strong> to this macro</p>
</li>
<li></li>
<li>
<p dir="auto"><strong>Delete</strong> all contents of this <strong>new</strong> tab with a <strong><code>Ctrl + Z</code></strong> operation</p>
</li>
<li>
<p dir="auto">Change the <strong>EOL</strong> format of the <strong>new</strong> tab to <strong>Mac</strong>, with the command <strong><code>Edit &gt; EOL Conversion &gt; Macintosh (CR)</code></strong></p>
</li>
<li>
<p dir="auto">Start recording a macro with the command <strong><code>Macro &gt; Start Recording</code></strong></p>
</li>
<li>
<p dir="auto">In the <strong>new</strong> tab, just type in the string <strong><code>MNO</code></strong> and hit the <strong><code>Enter</code></strong> key</p>
</li>
<li>
<p dir="auto">Then, type in the string <strong><code>PQR</code></strong> and hit , again, the <strong><code>Enter</code></strong> key</p>
</li>
<li>
<p dir="auto">Stop recording the <strong>current</strong> macro with the command <strong><code>Macro &gt; Stop Recording</code></strong></p>
</li>
<li>
<p dir="auto">Click on the the menu option <strong><code>Macro &gt; Save Current Recorded Macro...</code></strong></p>
</li>
<li>
<p dir="auto">Give the name <strong><code>Test_CR</code></strong> to this macro</p>
</li>
<li></li>
<li>
<p dir="auto">Close N++ <strong><code>v.8.5.3</code></strong>, <strong>without</strong> saving the new tab</p>
</li>
<li>
<p dir="auto">Restart N++ <strong><code>v.8.5.3</code></strong></p>
</li>
<li>
<p dir="auto">Open your <strong>active</strong> <strong><code>shortcuts.xml</code></strong> file</p>
</li>
<li>
<p dir="auto">Note the contents of the <strong>three</strong> macros <strong><code>Test_CRLF</code></strong> , <strong><code>Test_LF</code></strong> and <strong><code>Test_CR</code></strong> :</p>
<ul>
<li>
<p dir="auto">In the <strong><code>Test_CRLF</code></strong> macro, the <strong>first</strong> part of each <em>EOL</em> recording is the <strong><code>CR</code></strong> character ( <em>OK</em> ) but the <strong>second</strong> part is <strong><code>CRLF</code></strong> and <strong>not</strong> <strong><code>LF</code></strong> ( <em>??</em> )</p>
</li>
<li>
<p dir="auto">In the <strong><code>Test_LF</code></strong> macro, the <strong>two</strong> <em>EOL</em> recording are the <strong><code>CRLF</code></strong> characters and <strong>not</strong> the <strong><code>LF</code></strong> chars ( <em>??</em> )</p>
</li>
<li>
<p dir="auto">In the <strong><code>Test_CR</code></strong> macro, the <strong>two</strong> <em>EOL</em> recording are <strong>correctly</strong> the <strong><code>CR</code></strong> characters ( <em>OK</em> )</p>
</li>
</ul>
</li>
</ul>
<p dir="auto">I don’t know, if we should trigger an <strong><code>GitHub</code></strong> <strong>issue</strong> for these oddities ??</p>
<p dir="auto">Best Regards</p>
<p dir="auto">guy038</p>
<p dir="auto"><strong>P.S.</strong> : I’ve just seen the <a class="plugin-mentions-user plugin-mentions-a" href="/user/peterjones" aria-label="Profile: peterjones">@<bdi>peterjones</bdi></a>’s post… and will have a look at it !</p>
]]></description><link>https://community.notepad-plus-plus.org/post/86561</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/86561</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Thu, 25 May 2023 07:23:31 GMT</pubDate></item><item><title><![CDATA[Reply to HELP: Having trouble with Macros in v8.5.3 or later on Wed, 24 May 2023 20:00:41 GMT]]></title><description><![CDATA[<p dir="auto">I was going back through some of the posts here, to see if there are improvements that can be made to the FAQ.</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/guy038" aria-label="Profile: guy038">@<bdi>guy038</bdi></a>,</p>
<blockquote>
<p dir="auto">I do not think that your macro really adds a line-break when you use the \x{000D} and \x{000A} syntax in the &lt;Macros&gt; node of your shortcut.xml file, in N++ v8.5.3</p>
</blockquote>
<p dir="auto">I think you misread <a class="plugin-mentions-user plugin-mentions-a" href="/user/datatraveller1" aria-label="Profile: datatraveller1">@<bdi>datatraveller1</bdi></a>: you seemed to asssume he changed to the literal</p>
<pre><code>&lt;Action type="1" message="2170" wParam="0" lParam="0" sParam="\x{000D}" /&gt;
&lt;Action type="1" message="2170" wParam="0" lParam="0" sParam="\x{000A}" /&gt;
</code></pre>
<p dir="auto">If that had been the case, it wouldn’t work.  But based on the “find what” and “replace with” in the post you replied to, he actually followed the advice found in the FAQ, which is when editing <code>shortcuts.xml</code> to use Notepad++ <strong>Replace</strong> window to run a regex search-and-replace.  Using the “find what” and “replace with” that <a class="plugin-mentions-user plugin-mentions-a" href="/user/datatraveller1" aria-label="Profile: datatraveller1">@<bdi>datatraveller1</bdi></a> mentioned, and which I suggested in the FAQ, <em>will</em> change the <code>&amp;#x000D;</code> sequence to the actual CR character and <code>&amp;#x000A;</code> with the actual LF character.</p>
<p dir="auto">Later, <a class="plugin-mentions-user plugin-mentions-a" href="/user/guy038" aria-label="Profile: guy038">@<bdi>guy038</bdi></a> also wrote:</p>
<blockquote>
<p dir="auto">Duplicate the line <code>&lt;Action type="1" message="2170" wParam="0" lParam="0" sParam="" /&gt;</code>, as many times as the number of chars to be inserted, including a possible line-break, with the Ctrl + D shortcut</p>
</blockquote>
<p dir="auto">There’s no need.  The macro recorder just puts one character per <code>2170</code>-message, but that’s not a restriction of the macro playback.  If you are editing a macro and want to insert the text <code>èòù[CRLF]</code>, the single action</p>
<pre><code>&lt;Action type="1" message="2170" wParam="0" lParam="0" sParam="èòù
" /&gt;
</code></pre>
<p dir="auto">will work (assuming the linebreak in the sParam is really a CR and LF)</p>
<p dir="auto">That said, based on what I’ve re-read here, I will suggest the <code>Alt</code>+<code>013</code> and <code>Alt</code>+<code>010</code> methods of entering those characters, and using the Character Panel (or <strong>Run &gt; Run…</strong> &gt; <code>charmap.exe</code>) for entering characters that aren’t on your keyboard.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/86559</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/86559</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Wed, 24 May 2023 20:00:41 GMT</pubDate></item><item><title><![CDATA[Reply to HELP: Having trouble with Macros in v8.5.3 or later on Wed, 24 May 2023 11:48:53 GMT]]></title><description><![CDATA[<p dir="auto">Certainly copy and paste of a character from another source also works fine as an alternative to using the <em>Character Panel</em>, which has a limited number of possible characters anyway.</p>
<p dir="auto">But, as stated, probably <em>Character Panel</em> is a good choice for carriage-return and line-feed characters.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/86543</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/86543</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Wed, 24 May 2023 11:48:53 GMT</pubDate></item><item><title><![CDATA[Reply to HELP: Having trouble with Macros in v8.5.3 or later on Wed, 24 May 2023 19:26:13 GMT]]></title><description><![CDATA[<p dir="auto">Hi, <a class="plugin-mentions-user plugin-mentions-a" href="/user/wonkawilly" aria-label="Profile: wonkawilly">@<bdi>wonkawilly</bdi></a>, <a class="plugin-mentions-user plugin-mentions-a" href="/user/datatraveller1" aria-label="Profile: datatraveller1">@<bdi>datatraveller1</bdi></a> and <strong>all</strong>,</p>
<p dir="auto">But, of course, if a character is <strong>available</strong> on your keyboard, you may, as well, just type in this <strong>character</strong> !!</p>
<p dir="auto">It’s <strong>only</strong> for special chars as <strong>line-break</strong> chars and some others that you <strong>need</strong> the help of the <strong><code>Character Panel</code></strong></p>
<p dir="auto">For instance, for the <strong>line-break</strong> chars, just use the method, described in my post to <a class="plugin-mentions-user plugin-mentions-a" href="/user/datatraveller1" aria-label="Profile: datatraveller1">@<bdi>datatraveller1</bdi></a>, using <strong><code>ALT</code></strong> + <strong><code>013</code></strong> and <strong><code>ALT</code></strong> + <strong><code>010</code></strong>, on the <strong>numeric</strong> keypad</p>
<p dir="auto">BR</p>
<p dir="auto">guy038</p>
<p dir="auto"><strong>P.S</strong> :</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/datatraveller1" aria-label="Profile: datatraveller1">@<bdi>datatraveller1</bdi></a>, The best when creating <strong>macros</strong> is to open the <strong><code>Character Panel</code></strong>, <strong>first</strong> and :</p>
<ul>
<li>
<p dir="auto"><strong>Double</strong>-click on [ <strong><code>CR</code></strong> and ] <strong><code>LF</code></strong>, each time you want to insert a <strong>line-break</strong> in a macro</p>
</li>
<li>
<p dir="auto"><strong>Double</strong>-click on <strong>any</strong> character when this char is <strong>not</strong> available on your keyboard !</p>
</li>
</ul>
]]></description><link>https://community.notepad-plus-plus.org/post/86536</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/86536</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Wed, 24 May 2023 19:26:13 GMT</pubDate></item><item><title><![CDATA[Reply to HELP: Having trouble with Macros in v8.5.3 or later on Wed, 24 May 2023 09:25:42 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/wonkawilly" aria-label="Profile: wonkawilly">@<bdi>wonkawilly</bdi></a> As far as I have understood <a class="plugin-mentions-user plugin-mentions-a" href="/user/guy038" aria-label="Profile: guy038">@<bdi>guy038</bdi></a> and the FAQ, you simply have to replace the old values UTF-8 encoded literally with <code>è</code>, <code>à</code> etc.</p>
<p dir="auto">I’m not sure if something like Python would work for the macro system but I partly agree that it is a bit ugly sometimes - In my case I don’t like that real line breaks get inserted into shortcuts.xml.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/86535</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/86535</guid><dc:creator><![CDATA[datatraveller1]]></dc:creator><pubDate>Wed, 24 May 2023 09:25:42 GMT</pubDate></item><item><title><![CDATA[Reply to HELP: Having trouble with Macros in v8.5.3 or later on Wed, 24 May 2023 07:35:14 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/guy038" aria-label="Profile: guy038">@<bdi>guy038</bdi></a> said in <a href="/post/86532">HELP: Having trouble with Macros in v8.5.3 or later</a>:</p>
<blockquote>
<p dir="auto">here is the <strong>right</strong> way to enter <strong>any</strong> character according to the <strong>new</strong> behaviour of macros, in N++ v.8.5.3!</p>
</blockquote>
<p dir="auto">The right way became a little bit more cumbersome than before… I rather like to write whole string with the keyboard or even better by voice.</p>
<p dir="auto">I have to say that if there is a thing that I really hate about N++ since the first usage is the macro system. I would like to see it replaced with a better language for example js, py, cs or else, keeping the capability to record commands executed into N++ and adding the possibility to modify a macro written into a real and serious programming language that is easily human readable and modifiable than the macro system actually implemented that is really ugly.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/86534</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/86534</guid><dc:creator><![CDATA[wonkawilly]]></dc:creator><pubDate>Wed, 24 May 2023 07:35:14 GMT</pubDate></item><item><title><![CDATA[Reply to HELP: Having trouble with Macros in v8.5.3 or later on Wed, 24 May 2023 08:21:21 GMT]]></title><description><![CDATA[<p dir="auto">Hello, <a class="plugin-mentions-user plugin-mentions-a" href="/user/wonkawilly" aria-label="Profile: wonkawilly">@<bdi>wonkawilly</bdi></a> and <strong>All</strong>,</p>
<p dir="auto">Finally, <a class="plugin-mentions-user plugin-mentions-a" href="/user/wonkawilly" aria-label="Profile: wonkawilly">@<bdi>wonkawilly</bdi></a>, here is the <strong>right</strong> way to enter <strong>any</strong> character according to the <strong>new</strong> behaviour of macros, in N++ <strong><code>v.8.5.3</code></strong>!</p>
<hr />
<ul>
<li>
<p dir="auto">Open your <strong>active</strong> <strong><code>shortcuts.xml</code></strong> file in Notepad++</p>
</li>
<li>
<p dir="auto">Insert the <strong>empty</strong> template, below, at the <strong>end</strong> of the <strong>Macros</strong> section, right before <strong><code>&lt;/Macros&gt;</code></strong>, in your <strong><code>shortcuts.xml</code></strong> file :</p>
</li>
</ul>
<pre><code class="language-diff">        &lt;Macro name="Test" Ctrl="no" Alt="no" Shift="no" Key="0"&gt;
            &lt;Action type="1" message="2170" wParam="0" lParam="0" sParam="" /&gt;
        &lt;/Macro&gt;
</code></pre>
<ul>
<li><strong>Duplicate</strong> the line <strong><code>&lt;Action type="1" message="2170" wParam="0" lParam="0" sParam="" /&gt;</code></strong>, as many <strong>times</strong> as the <strong>number</strong> of chars to be inserted, incuding a possible <strong>line-break</strong>,  with the <strong><code>Ctrl + D</code></strong> shortcut</li>
</ul>
<p dir="auto">=&gt; In your exemple, we’ll add <strong>four</strong> lines</p>
<pre><code class="language-diff">        &lt;Macro name="Test" Ctrl="no" Alt="no" Shift="no" Key="0"&gt;
            &lt;Action type="1" message="2170" wParam="0" lParam="0" sParam="" /&gt;
            &lt;Action type="1" message="2170" wParam="0" lParam="0" sParam="" /&gt;
            &lt;Action type="1" message="2170" wParam="0" lParam="0" sParam="" /&gt;
            &lt;Action type="1" message="2170" wParam="0" lParam="0" sParam="" /&gt;
            &lt;Action type="1" message="2170" wParam="0" lParam="0" sParam="" /&gt;
        &lt;/Macro&gt;~~~
</code></pre>
<ul>
<li>
<p dir="auto">Put your <strong>caret/cursor</strong> between the <strong>two</strong> double-quotes of <strong>each</strong> <strong><code>sParam</code></strong> attribute</p>
</li>
<li>
<p dir="auto">Open the <strong><code>Edit &gt; Character Panel</code></strong> menu option</p>
</li>
<li>
<p dir="auto"><strong>Double</strong>-click on the characters to <strong>insert</strong>, located under the <strong>‘Character’</strong> column of the <strong><code>Character Panel</code></strong>. Thus, for the <strong>line-break</strong> chars, just <strong>double</strong>-click on <strong><code>CR</code></strong>, then <strong><code>LF</code></strong> !</p>
</li>
</ul>
<p dir="auto">=&gt; We get this <strong>functional</strong> macro :</p>
<pre><code class="language-diff">        &lt;Macro name="Test" Ctrl="no" Alt="no" Shift="no" Key="0"&gt;
            &lt;Action type="1" message="2170" wParam="0" lParam="0" sParam="è" /&gt;
            &lt;Action type="1" message="2170" wParam="0" lParam="0" sParam="ò" /&gt;
            &lt;Action type="1" message="2170" wParam="0" lParam="0" sParam="ù" /&gt;
            &lt;Action type="1" message="2170" wParam="0" lParam="0" sParam="
" /&gt;
            &lt;Action type="1" message="2170" wParam="0" lParam="0" sParam="
" /&gt;
        &lt;/Macro&gt;
</code></pre>
<ul>
<li>
<p dir="auto">Save your <strong><code>shortcuts.xml</code></strong> file</p>
</li>
<li>
<p dir="auto">Close and <strong>restart</strong> N++</p>
</li>
</ul>
<p dir="auto">Enjoy your <strong><code>Test</code></strong> macro !</p>
<p dir="auto">Best Regards,</p>
<p dir="auto">guy038</p>
]]></description><link>https://community.notepad-plus-plus.org/post/86532</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/86532</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Wed, 24 May 2023 08:21:21 GMT</pubDate></item><item><title><![CDATA[Reply to HELP: Having trouble with Macros in v8.5.3 or later on Wed, 24 May 2023 06:00:39 GMT]]></title><description><![CDATA[<p dir="auto">I am having that kind of trubble my self too. I am getting errors of encoding in simple strings with accents for example with the use of the following caracters: à ù ò.<br />
Please have a look at the following picture:</p>
<p dir="auto"><img src="/assets/uploads/files/1684907943258-88ecb38d-989a-48bc-8f71-29247bc804ad-image.png" alt="88ecb38d-989a-48bc-8f71-29247bc804ad-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">Maybe the new implementation is not yet complete.</p>
<p dir="auto">Thank for reading.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/86530</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/86530</guid><dc:creator><![CDATA[wonkawilly]]></dc:creator><pubDate>Wed, 24 May 2023 06:00:39 GMT</pubDate></item><item><title><![CDATA[Reply to HELP: Having trouble with Macros in v8.5.3 or later on Mon, 22 May 2023 07:58:03 GMT]]></title><description><![CDATA[<p dir="auto">Hi <a class="plugin-mentions-user plugin-mentions-a" href="/user/guy038" aria-label="Profile: guy038">@<bdi>guy038</bdi></a> thank you, CR and LF got inserted as real line breaks with the FAQ solution:</p>
<p dir="auto"><img src="/assets/uploads/files/1684742171627-80ce0429-952a-433f-a7dc-4f822701271c-image.png" alt="80ce0429-952a-433f-a7dc-4f822701271c-image.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://community.notepad-plus-plus.org/post/86500</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/86500</guid><dc:creator><![CDATA[datatraveller1]]></dc:creator><pubDate>Mon, 22 May 2023 07:58:03 GMT</pubDate></item><item><title><![CDATA[Reply to HELP: Having trouble with Macros in v8.5.3 or later on Mon, 22 May 2023 05:20:33 GMT]]></title><description><![CDATA[<p dir="auto">Hello, <a class="plugin-mentions-user plugin-mentions-a" href="/user/datatraveller1" aria-label="Profile: datatraveller1">@<bdi>datatraveller1</bdi></a>, <a class="plugin-mentions-user plugin-mentions-a" href="/user/peterjones" aria-label="Profile: peterjones">@<bdi>peterjones</bdi></a> and <strong>All</strong>,</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/datatraveller1" aria-label="Profile: datatraveller1">@<bdi>datatraveller1</bdi></a>, I do <strong>not</strong> think that your macro <strong>really</strong> adds a <strong>line-break</strong> when you use the <strong><code>\x{000D}</code></strong> and <strong><code>\x{000A}</code></strong> syntax in the <strong><code>&lt;Macros&gt;</code></strong> node of your <strong><code>shortcut.xml</code></strong> file, in <strong><code>N++ v8.5.3</code></strong></p>
<p dir="auto">Personally, adding the following section, in my <strong>portable</strong> N++ <strong><code>v5.8.3</code></strong> installation :</p>
<pre><code class="language-diff">        &lt;Macro name="ABC + Line-Break" Ctrl="no" Alt="no" Shift="no" Key="0"&gt;
            &lt;Action type="1" message="2170" wParam="0" lParam="0" sParam="A" /&gt;
            &lt;Action type="1" message="2170" wParam="0" lParam="0" sParam="B" /&gt;
            &lt;Action type="1" message="2170" wParam="0" lParam="0" sParam="C" /&gt;
            &lt;Action type="1" message="2170" wParam="0" lParam="0" sParam="\x{000D}" /&gt;
            &lt;Action type="1" message="2170" wParam="0" lParam="0" sParam="\x{000a}" /&gt;
        &lt;/Macro&gt;
</code></pre>
<p dir="auto">Results, when running this macro in a <strong>new</strong> tab, by the <strong>insertion</strong> of the <strong>literal</strong> text <strong><code>ABC\x{000D}\x{000A}</code></strong></p>
<hr />
<p dir="auto">Whereas, <strong>selecting</strong> the string, between the <strong>double-quotes</strong> of the <strong><code>sParam</code></strong> attribute, and :</p>
<ul>
<li>
<p dir="auto">Hitting the <strong><code>ALT</code></strong> key and, pressing <strong>simultaneously</strong> the <strong><code>0</code></strong>, <strong><code>1</code></strong> and <strong><code>3</code></strong> keys, on the <strong>numeric</strong> keypad, does insert a true <strong><code>CR</code></strong> character</p>
</li>
<li>
<p dir="auto">Hitting the <strong><code>ALT</code></strong> key and, pressing <strong>simultaneously</strong> the <strong><code>0</code></strong>, <strong><code>1</code></strong> and <strong><code>0</code></strong> keys, on the <strong>numeric</strong> keypad, does insert a true <strong><code>LF</code></strong> character</p>
</li>
</ul>
<p dir="auto">In the <strong>last two</strong> lines <strong><code>Action</code></strong> of the macro and gives this text :</p>
<pre><code class="language-diff">        &lt;Macro name="ABC + Line-Break" Ctrl="no" Alt="no" Shift="no" Key="0"&gt;
            &lt;Action type="1" message="2170" wParam="0" lParam="0" sParam="A" /&gt;
            &lt;Action type="1" message="2170" wParam="0" lParam="0" sParam="B" /&gt;
            &lt;Action type="1" message="2170" wParam="0" lParam="0" sParam="C" /&gt;
            &lt;Action type="1" message="2170" wParam="0" lParam="0" sParam="
" /&gt;
            &lt;Action type="1" message="2170" wParam="0" lParam="0" sParam="
" /&gt;
        &lt;/Macro&gt;
</code></pre>
<p dir="auto"><strong>IMPORTANT</strong> : If you <strong>paste</strong> this text in a <strong>new</strong> tab, don’t forget to change the line-break of <strong>two last</strong> lines with <strong><code>CR</code></strong> and <strong><code>LF</code></strong>, instead of keeping <strong>two</strong> <strong><code>CRLF</code></strong> lines !</p>
<p dir="auto">Just select the <strong>two</strong> chars <strong><code>CRLF</code></strong> of the <strong>last two</strong> lines and use the <strong><code>ALT</code></strong> + <strong>numeric</strong> keypad method to change the <strong>first</strong> line-break as <strong><code>CR</code></strong> and the <strong>second</strong> one as <strong><code>LF</code></strong>. Delete any <strong>non</strong>-intentional <strong>leading</strong> <strong><code>TAB</code></strong> chars, too.</p>
<hr />
<p dir="auto">Running this <strong>last</strong> version of the macro <strong>does</strong> write the <strong><code>ABC</code></strong> string followed with a <strong>Windows</strong> line-break <strong><code>CRLF</code></strong> ;-))</p>
<p dir="auto">My <strong>debug info</strong> :</p>
<pre><code class="language-diff">Notepad++ v8.5.3   (64-bit)
Build time : May 15 2023 - 06:09:36
Path : E:\853_x64\notepad++.exe
Command Line : 
Admin mode : OFF
Local Conf mode : ON
Cloud Config : OFF
OS Name : Windows 10 Pro (64-bit)
OS Version : 22H2
OS Build : 19045.2965
Current ANSI codepage : 1252
Plugins : 
    mimeTools (2.9)
    NppConverter (4.5)
    NppExport (0.4)
</code></pre>
<p dir="auto">Best Regards,</p>
<p dir="auto">guy038</p>
]]></description><link>https://community.notepad-plus-plus.org/post/86498</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/86498</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Mon, 22 May 2023 05:20:33 GMT</pubDate></item><item><title><![CDATA[Reply to HELP: Having trouble with Macros in v8.5.3 or later on Sun, 21 May 2023 20:30:20 GMT]]></title><description><![CDATA[<p dir="auto">So I have found the solution (thanks to <a class="plugin-mentions-user plugin-mentions-a" href="/user/peterjones" aria-label="Profile: PeterJones">@<bdi>PeterJones</bdi></a>) in the FAQ:<br />
Find what: <code>&amp;#x000D;</code> Replace With: <code>\x{000D}</code><br />
Find what: <code>&amp;#x000A;</code> Replace With: <code>\x{000A}</code><br />
with Search mode set to Regular Expression and run Replace All.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/86489</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/86489</guid><dc:creator><![CDATA[datatraveller1]]></dc:creator><pubDate>Sun, 21 May 2023 20:30:20 GMT</pubDate></item><item><title><![CDATA[Reply to HELP: Having trouble with Macros in v8.5.3 or later on Sun, 21 May 2023 17:22:45 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> I have a macro which inserts a new line:<br />
<code>&lt;Action type="1" message="2170" wParam="0" lParam="0" sParam="&amp;#x000D;" /&gt;</code><br />
<code>&lt;Action type="1" message="2170" wParam="0" lParam="0" sParam="&amp;#x000A;" /&gt;</code></p>
<p dir="auto"><code>&amp;#x000D;&amp;#x000A;</code> gets inserted literally instead of a new line (CR/LF) with version v8.5.3. I tried to use “\n” instead but this gets inserted literally too. What am I doing wrong?</p>
]]></description><link>https://community.notepad-plus-plus.org/post/86488</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/86488</guid><dc:creator><![CDATA[datatraveller1]]></dc:creator><pubDate>Sun, 21 May 2023 17:22:45 GMT</pubDate></item><item><title><![CDATA[Reply to HELP: Having trouble with Macros in v8.5.3 or later on Thu, 18 May 2023 14:00:48 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/grath777" aria-label="Profile: Grath777">@<bdi>Grath777</bdi></a> said in <a href="/post/86425">HELP: Having trouble with Macros in v8.5.3 or later</a>:</p>
<blockquote>
<p dir="auto">I am doing find/replace in Regular Expression mode where the find and replace fields also both include a tab character which we define in the macro thusly</p>
</blockquote>
<p dir="auto">Searching for or replacing a tab character in a Regular Expression doesn’t need to have the tab character encoded like that: you can use the regular expression syntax <code>\t</code> in both the <strong>Find What</strong> and <strong>Replace With</strong> fields and have it work.  So in your macro source, where you had a <code>&amp;#x0009;</code> in a search or replace field (so in the <code>sParam="..."</code> of the <code>message="1601"</code> for <strong>Find What</strong> and in the <code>sParam="..."</code> of the <code>message="1602"</code> for <strong>Replace With</strong>, per <a href="https://npp-user-manual.org/docs/searching/#searching-actions-when-recorded-as-macros" rel="nofollow ugc">Search and Replace Macros in the User Manual</a>), you could just use a <code>\t</code> instead, which will avoid all the macro issues.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/86430</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/86430</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Thu, 18 May 2023 14:00:48 GMT</pubDate></item><item><title><![CDATA[Reply to HELP: Having trouble with Macros in v8.5.3 or later on Thu, 18 May 2023 13:57:20 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> Confirmed that took care of everything.  Thanks again!</p>
]]></description><link>https://community.notepad-plus-plus.org/post/86429</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/86429</guid><dc:creator><![CDATA[Grath777]]></dc:creator><pubDate>Thu, 18 May 2023 13:57:20 GMT</pubDate></item></channel></rss>