<?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[Copy column with macro]]></title><description><![CDATA[<p dir="auto">I have a column (in practice many screens long, for this question it is shortened to length 5):</p>
<pre><code>cigar
rebut
sissy
humph
awake
</code></pre>
<p dir="auto">and I want to copy the column, so that I get:</p>
<pre><code>cigar  cigar
rebut  rebut
sissy  sissy
humph  humph
awake  awake
</code></pre>
<p dir="auto">Method 1 (“by hand”): go to upper left corner; hold down alt; drag caret to bottom right corner; ctrl-c; go to top right; enter a few spaces; ctrl-v. This method is inconvenient for long columns because it requires the scrolling of many screens with the alt-key being held down.</p>
<p dir="auto">On this forum I learned method 2. Click consecutively: ctrl-home;  alt-left-mouse; Edit&gt;Begin select; ctrl-end;  alt-left-mouse; Edit&gt;End select; ctrl-c. Followed by ctrl-v at the position wanted. While doing, this I observe that the entries in the column are selected, and that the <strong>EOL characters are not selected.</strong></p>
<p dir="auto">I want to capture method 2 in a macro, so I precede its steps by pushing the button “Start Recording”, go through the very same steps (incidentally, I observe that  entries are  selected <strong>without</strong>  EOL chars), and end with pushing the button “End Recording”.  When I now playback the macro, I see that the <strong>EOL characters are selected.</strong></p>
<p dir="auto">If I finally try to copy and paste the columns with EOL characters included, I get a mess (first entry goes into the correct position, remaining entries are appended to first column).</p>
<p dir="auto">I would appreciate  help and/or comments.</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/22717/copy-column-with-macro</link><generator>RSS for Node</generator><lastBuildDate>Sun, 12 Jul 2026 02:02:34 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/22717.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 14 Mar 2022 09:09:09 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Copy column with macro on Tue, 22 Mar 2022 12:23:10 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/paul-wormer" aria-label="Profile: paul-wormer">@<bdi>paul-wormer</bdi></a></p>
<p dir="auto">I could be wrong, but I don’t think any mouse action in the editing window will be macro-recorded – you have to do everything via keyboard.</p>
<p dir="auto">Also, if I’m trying to express mouse actions here in a Community posting, I might do:</p>
<ul>
<li>Ctrl+click (= hold Ctrl while left-clicking the mouse)</li>
<li>Alt+rclick (= hold Alt while right-clicking the mouse)</li>
<li>Shift+ dclick (= hold Shift while double-clicking the left mouse button)</li>
</ul>
]]></description><link>https://community.notepad-plus-plus.org/post/75353</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/75353</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Tue, 22 Mar 2022 12:23:10 GMT</pubDate></item><item><title><![CDATA[Reply to Copy column with macro on Tue, 22 Mar 2022 11:59:19 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><br />
My mistake was silly, yet other newbies may make it too:<br />
I interpreted alt+shift-left as alt-shift-left-mouse and not as alt-shift-left-arrow. (And similarly for right).</p>
]]></description><link>https://community.notepad-plus-plus.org/post/75351</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/75351</guid><dc:creator><![CDATA[Paul Wormer]]></dc:creator><pubDate>Tue, 22 Mar 2022 11:59:19 GMT</pubDate></item><item><title><![CDATA[Reply to Copy column with macro on Tue, 22 Mar 2022 07:52:48 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> Your macro works. Thank you.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/75350</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/75350</guid><dc:creator><![CDATA[Paul Wormer]]></dc:creator><pubDate>Tue, 22 Mar 2022 07:52:48 GMT</pubDate></item><item><title><![CDATA[Reply to Copy column with macro on Mon, 21 Mar 2022 17:00:32 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/paul-wormer" aria-label="Profile: paul-wormer">@<bdi>paul-wormer</bdi></a> ,</p>
<p dir="auto">Something is going wrong with your recording – something getting in the way, or what have you.  So just skip the recording, and use my pre-recorded macro instead: exit all instances of Notepad++, edit <code>shortcuts.xml</code> (you can safely do it in a new instance of Notepad++, or in a separate editor), paste the macro I supplied in the macros-section, save, exit Notepad++ (or other editor).  Run Notepad++, and a macro named “22717” will show up in your macro menu.  That should do what you described you wanted (since it’s what I recorded when I did what you said you wanted)</p>
<blockquote>
<p dir="auto">which sounds okay and not like a popup of (part of) the Edit menu</p>
</blockquote>
<p dir="auto">What you displayed is <em>not</em> “part of the Edit menu”, what you displayed was the Right Click Context Menu, which means Notepad++ saw a “right click” at some point while you were in the editor panel of Notepad++.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/75344</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/75344</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Mon, 21 Mar 2022 17:00:32 GMT</pubDate></item><item><title><![CDATA[Reply to Copy column with macro on Mon, 21 Mar 2022 10:12:03 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/paul-wormer" aria-label="Profile: paul-wormer">@<bdi>paul-wormer</bdi></a> Correction: Alan’s post is from 2021 not 2022.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/75338</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/75338</guid><dc:creator><![CDATA[Paul Wormer]]></dc:creator><pubDate>Mon, 21 Mar 2022 10:12:03 GMT</pubDate></item><item><title><![CDATA[Reply to Copy column with macro on Mon, 21 Mar 2022 10:00:36 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> <a class="plugin-mentions-user plugin-mentions-a" href="/user/peter-jones" aria-label="Profile: PETER-JONES">@<bdi>PETER-JONES</bdi></a><br />
I’m back and looked first at <a href="https://community.notepad-plus-plus.org/post/62011">Alan’s procedure</a> from  Januari 19, 2022.  This is the post that I thought I remembered, but I see now that my memory failed me and that I did not follow the exact same steps.  However, when I now copy them exactly,   I encounter a peculiarity: my alt-shift-right gives the following popup:</p>
<p dir="auto"><img src="/assets/uploads/files/1647855020208-alt-shift-right-resized.png" alt="alt-shift-right.png" class=" img-fluid img-markdown" /><br />
The <code>Shortcut mapper&gt;Scintilla commands</code> assigns alt-shift-right to: SCI_CHARRIGHTRECTEXTEND, which sounds okay  and not like a popup of (part of) the Edit menu. As far as I’m aware, I did not fiddle around with any Npp keys,  so that I have  default settings. The debug info is:</p>
<p dir="auto">Notepad++ v8.3.3   (64-bit)<br />
Build time : Mar 13 2022 - 17:20:02<br />
Path : C:\Program Files\Notepad++\notepad++.exe<br />
Command Line :<br />
Admin mode : OFF<br />
Local Conf mode : OFF<br />
Cloud Config : OFF<br />
OS Name : Windows 10 Home (64-bit)<br />
OS Version : 2009<br />
OS Build : 19043.1586<br />
Current ANSI codepage : 1252<br />
Plugins : ColumnTools.dll DSpellCheck.dll HexEditor.dll mimeTools.dll NppConverter.dll NppExport.dll PythonScript.dll</p>
]]></description><link>https://community.notepad-plus-plus.org/post/75336</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/75336</guid><dc:creator><![CDATA[Paul Wormer]]></dc:creator><pubDate>Mon, 21 Mar 2022 10:00:36 GMT</pubDate></item><item><title><![CDATA[Reply to Copy column with macro on Wed, 16 Mar 2022 06:12:19 GMT]]></title><description><![CDATA[<p dir="auto">@alan-kilborn@peter-jones<br />
Thank you for the hints. I will be away for a few days but after return I will read your answers in more detail. I’ll compare Alan’s recipe (from which I learned the  procedure but I had forgotten the link) with my steps and l will look into my shortcuts.xml to see the result.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/75180</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/75180</guid><dc:creator><![CDATA[Paul Wormer]]></dc:creator><pubDate>Wed, 16 Mar 2022 06:12:19 GMT</pubDate></item><item><title><![CDATA[Reply to Copy column with macro on Tue, 15 Mar 2022 19:12:43 GMT]]></title><description><![CDATA[<p dir="auto">Doing a bit of digging into what <a class="plugin-mentions-user plugin-mentions-a" href="/user/peterjones" aria-label="Profile: peterjones">@<bdi>peterjones</bdi></a> supplied…</p>
<p dir="auto">From here:<br />
<a href="https://github.com/notepad-plus-plus/notepad-plus-plus/blob/master/scintilla/include/Scintilla.h" rel="nofollow ugc">https://github.com/notepad-plus-plus/notepad-plus-plus/blob/master/scintilla/include/Scintilla.h</a></p>
<p dir="auto">One can see that 2428 and 2429 are the key things that get one into column mode in this macro; evidence:</p>
<pre><code>#define SCI_CHARLEFTRECTEXTEND 2428
#define SCI_CHARRIGHTRECTEXTEND 2429
</code></pre>
<p dir="auto">The “RECT” part of those is key as it plays to column select mode instead of stream select mode.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/75167</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/75167</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Tue, 15 Mar 2022 19:12:43 GMT</pubDate></item><item><title><![CDATA[Reply to Copy column with macro on Tue, 15 Mar 2022 17:34:33 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/paul-wormer" aria-label="Profile: paul-wormer">@<bdi>paul-wormer</bdi></a> ,</p>
<p dir="auto">I cannot tell what you’re doing wrong, but when I recorded Alan’s steps from <a href="https://community.notepad-plus-plus.org/post/62011">this post</a>, but used columns 1-5 instead of 5-22, it did exactly what I expected.</p>
<p dir="auto">The resulting macro is</p>
<pre><code>        &lt;Macro name="22717" Ctrl="no" Alt="no" Shift="no" Key="0"&gt;
            &lt;Action type="0" message="2316" wParam="0" lParam="0" sParam="" /&gt;
            &lt;Action type="2" message="0" wParam="42020" lParam="0" sParam="" /&gt;
            &lt;Action type="0" message="2318" wParam="0" lParam="0" sParam="" /&gt;
            &lt;Action type="0" message="2428" wParam="0" lParam="0" sParam="" /&gt;
            &lt;Action type="0" message="2429" wParam="0" lParam="0" sParam="" /&gt;
            &lt;Action type="2" message="0" wParam="42020" lParam="0" sParam="" /&gt;
            &lt;Action type="0" message="2178" wParam="0" lParam="0" sParam="" /&gt;
        &lt;/Macro&gt;
</code></pre>
<p dir="auto">(this does everything except the paste at the end: ctrl home, start select, ctrl end, make column mode, copy)</p>
]]></description><link>https://community.notepad-plus-plus.org/post/75162</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/75162</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Tue, 15 Mar 2022 17:34:33 GMT</pubDate></item><item><title><![CDATA[Reply to Copy column with macro on Tue, 15 Mar 2022 14:56:22 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/paul-wormer" aria-label="Profile: paul-wormer">@<bdi>paul-wormer</bdi></a><br />
I’m afraid  my question wasn’t clear, so here are two pictures for further clarification.</p>
<p dir="auto"><strong>1</strong>. When I am defining the macro, I see this:<br />
<img src="/assets/uploads/files/1647355322975-while-defing.png" alt="While defing.png" class=" img-fluid img-markdown" /><br />
Hence, when I copy (ctrl-c) this selection, I copy lines <strong>without</strong>  CRLF (eol chars). This is what I want.</p>
<p dir="auto"><strong>2.</strong> After I have executed the macro, I see this:<br />
<img src="/assets/uploads/files/1647355563651-while-executing.png" alt="While executing.png" class=" img-fluid img-markdown" /><br />
Hence, when I copy (ctrl-c) this selection,  I copy lines <strong>with</strong> CRLF (eol chars).  This is not  what I want.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/75161</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/75161</guid><dc:creator><![CDATA[Paul Wormer]]></dc:creator><pubDate>Tue, 15 Mar 2022 14:56:22 GMT</pubDate></item></channel></rss>