<?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[shortcuts.xml &lt;Action&gt; tag]]></title><description><![CDATA[<p dir="auto">I was unable to find any documentation on editing macros. While the &lt;Macro&gt; tag has pretty self explanatory parameters, I have no idea what most of the parameters in &lt;Action&gt; do. Is there some documentation on these? Or someone who knows what each of them do and what values are accepted.</p>
<p dir="auto">“type” seems to define if the action is a character input and “sParam” is the character to input. However, I have no idea what “message”, “wParam” and “lParam” do.</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/20542/shortcuts-xml-action-tag</link><generator>RSS for Node</generator><lastBuildDate>Sat, 09 May 2026 19:16:09 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/20542.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 02 Jan 2021 02:21:41 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to shortcuts.xml &lt;Action&gt; tag on Tue, 05 Jan 2021 04:03:48 GMT]]></title><description><![CDATA[<p dir="auto">Hello,<a class="plugin-mentions-user plugin-mentions-a" href="/user/susikette" aria-label="Profile: SusiKette">@<bdi>SusiKette</bdi></a><br />
Please try this code, To shortcuts.xml &lt;Action&gt; tag.</p>
<p dir="auto">In Windows 7|8|10 <strong>C:\Users%username%\AppData\Roaming\Notepad++\shortcuts.xml</strong></p>
<p dir="auto">Code:</p>
<pre><code>&lt;NotepadPlus&gt;
    &lt;InternalCommands /&gt;
    &lt;Macros&gt;
        &lt;Macro name="Trim Trailing and save" Ctrl="no" Alt="yes" Shift="yes" Key="83"&gt;
            &lt;Action type="2" message="0" wParam="42024" lParam="0" sParam="" /&gt;
            &lt;Action type="2" message="0" wParam="41006" lParam="0" sParam="" /&gt;
        &lt;/Macro&gt;
        &lt;Macro name="abc" 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;/Macro&gt;
    &lt;/Macros&gt;
    &lt;UserDefinedCommands&gt;....
</code></pre>
<p dir="auto">I hope this code will be useful to you.<br />
Thank you.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/61375</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/61375</guid><dc:creator><![CDATA[prahladmifour]]></dc:creator><pubDate>Tue, 05 Jan 2021 04:03:48 GMT</pubDate></item><item><title><![CDATA[Reply to shortcuts.xml &lt;Action&gt; tag on Sun, 03 Jan 2021 19:20:44 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/susikette" aria-label="Profile: SusiKette">@<bdi>SusiKette</bdi></a> said in <a href="/post/61337">shortcuts.xml &lt;Action&gt; tag</a>:</p>
<blockquote>
<p dir="auto">sParam, wParam or lParam</p>
</blockquote>
<p dir="auto">In case I didn’t make a couple of things clear enough:</p>
<ol>
<li>As the <a href="https://npp-user-manual.org/docs/config-files/#macros" rel="nofollow ugc"><strong>Config Files Details: Macros</strong> sectinon</a> says, <code>sParam</code> is <em>just</em> used for Macros; really, the value in <code>sParam</code> is passed to the second (<code>lParam</code>) slot in the actual SendMessage that is run behind the scenes.  So <code>sParam</code> is just used for any Notepad++ type=3 message (search/replace syntax) or Scintilla type=1 message that uses a string for the second SendMessage variable.</li>
<li>In the <a href="https://github.com/notepad-plus-plus/notepad-plus-plus/blob/master/scintilla/include/Scintilla.iface" rel="nofollow ugc">Scintilla.iface</a> that you linked, the <code>StartStyling=2032(position start, int unused)</code> examples show the CamelCase version of the <code>SCI_</code> Message name, followed by the message ID, and the <code>wParam</code> and <code>lParam</code> variables; any of the variables that it leaves blank are meant to indicate that the particular slot is not used, so should be set to 0: thus, <code>blah=###(x,)</code> means you set <code>lParam</code> to 0 for the <code>SCI_BLAH</code> message.</li>
</ol>
]]></description><link>https://community.notepad-plus-plus.org/post/61350</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/61350</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Sun, 03 Jan 2021 19:20:44 GMT</pubDate></item><item><title><![CDATA[Reply to shortcuts.xml &lt;Action&gt; tag on Sun, 03 Jan 2021 18:58:17 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/susikette" aria-label="Profile: SusiKette">@<bdi>SusiKette</bdi></a> said in <a href="/post/61337">shortcuts.xml &lt;Action&gt; tag</a>:</p>
<blockquote>
<p dir="auto">I was expecting the information to be at “<a href="https://npp-user-manual.org/docs/macros/" rel="nofollow ugc">Task automation with macros</a>”, or at the very least have a link to information on how to edit macros.</p>
</blockquote>
<p dir="auto">You mean like the last sentence on <a href="https://npp-user-manual.org/docs/macros/" rel="nofollow ugc">that page</a>, where it says:<br />
<img src="/assets/uploads/files/1609699876515-30ac1007-3fa5-4553-9d48-ffab76dc3d36-image.png" alt="30ac1007-3fa5-4553-9d48-ffab76dc3d36-image.png" class=" img-fluid img-markdown" /></p>
<blockquote>
<p dir="auto">Finding <a href="https://github.com/notepad-plus-plus/notepad-plus-plus/blob/master/scintilla/include/Scintilla.iface" rel="nofollow ugc">this document</a>, it seems some messages return values, can Notepad++ use them?</p>
</blockquote>
<p dir="auto">It cannot use messages that return values in Macros.</p>
<blockquote>
<p dir="auto">In other words, can you make conditional macros?</p>
</blockquote>
<p dir="auto">Nope.  There are no variables, loops, or conditionals in Macros.  Macros are purely linear.</p>
<p dir="auto">For anything more complicated than simple linear macros, you need to either write a plugin; or use one of the many scripting plugins, including PythonScript, NppExec, LuaScript, “jN Notepad++ Plugin” (javascript scripting); or use an external remote-control library, like my <a href="https://community.notepad-plus-plus.org/topic/18957/announcing-perl-based-automation-of-notepad/14">“PerlScript”</a></p>
<blockquote>
<p dir="auto">How do I know whether sParam, wParam or lParam is used for which argument, or is there another way of using them?</p>
</blockquote>
<p dir="auto">For Scintilla messages, you look at the Scintilla.iface you already linked, or the <a href="https://www.scintilla.org/ScintillaDoc.html" rel="nofollow ugc">Scintilla documentation</a>.  For Notepad++ messages, you look at the <a href="https://npp-user-manual.org/docs/plugin-communication/" rel="nofollow ugc">Notepad++ Plugin Communication doc</a>.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/61347</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/61347</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Sun, 03 Jan 2021 18:58:17 GMT</pubDate></item><item><title><![CDATA[Reply to shortcuts.xml &lt;Action&gt; tag on Sun, 03 Jan 2021 04:45:15 GMT]]></title><description><![CDATA[<p dir="auto">I was expecting the information to be at “Task automation with macros”, or at the very least have a link to information on how to edit macros. Finding <a href="https://github.com/notepad-plus-plus/notepad-plus-plus/blob/master/scintilla/include/Scintilla.iface" rel="nofollow ugc">this document</a>, it seems some messages return values, can Notepad++ use them? In other words, can you make conditional macros? Also, some messages take arguments. How do I know whether sParam, wParam or lParam is used for which argument, or is there another way of using them?</p>
]]></description><link>https://community.notepad-plus-plus.org/post/61337</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/61337</guid><dc:creator><![CDATA[SusiKette]]></dc:creator><pubDate>Sun, 03 Jan 2021 04:45:15 GMT</pubDate></item><item><title><![CDATA[Reply to shortcuts.xml &lt;Action&gt; tag on Sat, 02 Jan 2021 02:50:19 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/susikette" aria-label="Profile: SusiKette">@<bdi>SusiKette</bdi></a> said in <a href="/post/61303">shortcuts.xml &lt;Action&gt; tag</a>:</p>
<blockquote>
<p dir="auto">I was unable to find any documentation on editing macros.</p>
</blockquote>
<p dir="auto">Where did you look?  The official docs at <a href="http://npp-user-manual.org" rel="nofollow ugc">npp-user-manual.org</a> gave a section on the <a href="https://npp-user-manual.org/docs/config-files/#%3Cmacros%3E" rel="nofollow ugc">macros in shortcuts.xml</a>, which explains each of those attributes and where to find values</p>
]]></description><link>https://community.notepad-plus-plus.org/post/61305</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/61305</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Sat, 02 Jan 2021 02:50:19 GMT</pubDate></item></channel></rss>