<?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[Copying file itself into clipboard in Notepad++]]></title><description><![CDATA[<p dir="auto">Hi, there is a command in Hotkeys to copy path to file or filename, and a hotkey can be attributed to that action.<br />
A question: is there a way to copy a file itself, not the path to it? but puttin a file itself (putting it into clipboard) - without leaving Notepad++?</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/26260/copying-file-itself-into-clipboard-in-notepad</link><generator>RSS for Node</generator><lastBuildDate>Sat, 05 Sep 2026 09:02:54 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/26260.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 31 Oct 2024 06:59:33 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Copying file itself into clipboard in Notepad++ on Thu, 19 Jun 2025 19:14:03 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/alexander-anisimov" aria-label="Profile: Alexander-Anisimov">@<bdi>Alexander-Anisimov</bdi></a> said in <a href="/post/102169">Copying file itself into clipboard in Notepad++</a>:</p>
<blockquote>
<p dir="auto">how can I bind a hotkey something like Ctrl+Shift+C to it?</p>
</blockquote>
<p dir="auto">That’s explained in the FAQ.  Search that page for “shortcut” (step 4 of the instructions) if you didn’t notice it.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/102177</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/102177</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Thu, 19 Jun 2025 19:14:03 GMT</pubDate></item><item><title><![CDATA[Reply to Copying file itself into clipboard in Notepad++ on Thu, 19 Jun 2025 13:29:56 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> Thank you, so I just put the script in, but how can I bind a hotkey something like Ctrl+Shift+C to it?</p>
]]></description><link>https://community.notepad-plus-plus.org/post/102169</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/102169</guid><dc:creator><![CDATA[Alexander Anisimov]]></dc:creator><pubDate>Thu, 19 Jun 2025 13:29:56 GMT</pubDate></item><item><title><![CDATA[Reply to Copying file itself into clipboard in Notepad++ on Wed, 18 Jun 2025 14:45:46 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/ekopalypse" aria-label="Profile: Ekopalypse">@<bdi>Ekopalypse</bdi></a> ,</p>
<p dir="auto">yes, adding in the extra NULLs seems to have solved it.  I just tried a couple dozen times, and the copy-from-Notepad++/paste-in-Explorer worked every time now.</p>
<hr />
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/alexander-anisimov" aria-label="Profile: Alexander-Anisimov">@<bdi>Alexander-Anisimov</bdi></a> ,</p>
<p dir="auto">I don’t know if you’ll be back again after I redirected you back to this conversation, but if you are, it’s not as hard as you seemed to conclude last Autumn.</p>
<p dir="auto">The instructions would be:</p>
<ol>
<li>Setup the PythonScript plugin as described in our <a href="/topic/23039">FAQ</a></li>
<li>Use the updated script (derived from <a class="plugin-mentions-user plugin-mentions-a" href="/user/alan-kilborn" aria-label="Profile: Alan-Kilborn">@<bdi>Alan-Kilborn</bdi></a>’s <a href="https://community.notepad-plus-plus.org/post/97676">November 4th post</a>, with the <code>addressof</code> fix mentioned, and replace the <code>def main: ...</code> section with the value from <a class="plugin-mentions-user plugin-mentions-a" href="/user/ekopalypse" aria-label="Profile: Ekopalypse">@<bdi>Ekopalypse</bdi></a>’s <a href="https://community.notepad-plus-plus.org/post/102139">most reccent post</a>).  So that you don’t have to update the script yourself, the bottom of this post will contain the fully-updated script.</li>
<li>If you want, follow the instructions in the FAQ to give it a keyboard shortcut</li>
</ol>
<p dir="auto">From now on, running that script from the <strong>Plugin &gt; PythonScript &gt; Scripts</strong> menu (or your defined keyboard shortcut) will put the file into the clipboard in the right way so that you can move to Windows Explorer and paste the file to the new location.</p>
<hr />
<pre><code># encoding=utf-8
# https://community.notepad-plus-plus.org/post/97676
import ctypes
from ctypes import wintypes
from Npp import notepad

CF_HDROP = 15
GHND = 66

OpenClipboard = ctypes.windll.user32.OpenClipboard
OpenClipboard.argtypes = [ wintypes.HWND ]
OpenClipboard.restype = wintypes.BOOL

EmptyClipboard = ctypes.windll.user32.EmptyClipboard
EmptyClipboard.argtypes = []
EmptyClipboard.restype = wintypes.BOOL

SetClipboardData = ctypes.windll.user32.SetClipboardData
SetClipboardData.argtypes = [ wintypes.UINT, wintypes.HANDLE ]
SetClipboardData.restype = wintypes.HANDLE

CloseClipboard = ctypes.windll.user32.CloseClipboard
CloseClipboard.argtypes = []
CloseClipboard.restype = wintypes.BOOL

GlobalLock = ctypes.windll.kernel32.GlobalLock
GlobalLock.argtypes = [ wintypes.HGLOBAL ]
GlobalLock.restype = wintypes.LPVOID

GlobalAlloc = ctypes.windll.kernel32.GlobalAlloc
GlobalAlloc.argtypes = [wintypes.UINT, ctypes.c_size_t]
GlobalAlloc.restype = wintypes.HGLOBAL

GlobalUnlock = ctypes.windll.kernel32.GlobalUnlock
GlobalUnlock.argtypes = [ wintypes.HGLOBAL ]
GlobalUnlock.restype = wintypes.BOOL

memcpy = ctypes.cdll.msvcrt.memcpy
memcpy.argtypes = [ctypes.c_void_p, ctypes.c_void_p, ctypes.c_size_t]

addressof = ctypes.addressof

class POINT(ctypes.Structure):
    _fields_ = [
        ('x', wintypes.LONG),
        ('y', wintypes.LONG)
    ]

class DROPFILES(ctypes.Structure):
    _fields_ = [
        ('pFiles', wintypes.DWORD),
        ('pt', POINT),
        ('fNC', wintypes.BOOL),
        ('fWide', wintypes.BOOL),
    ]

def dump_mem(addr, size):
    mem = list((ctypes.c_ubyte * size).from_address(addr))
    print(mem)

def main():
    path = ctypes.create_unicode_buffer(notepad.getCurrentFilename())
    path_size = ctypes.sizeof(path)
    df_size = ctypes.sizeof(DROPFILES)
    total_size = df_size + path_size + 2  # The data that follows the structure is a double null-terminated list of file names.

    df = DROPFILES()
    df.pFiles = df_size
    df.fWide = True

    h_global_mem = GlobalAlloc(GHND, total_size)  # allocate enough memory to hold the df struct and the full path
    if h_global_mem:
        lp_global_mem = GlobalLock(h_global_mem)  # lock and get the pointer to the memory
        memcpy(lp_global_mem, addressof(df), df_size)  # first copy the df struct
        memcpy(lp_global_mem+df_size, addressof(path), path_size)  # now copy the full path name
        dump_mem(lp_global_mem, total_size)
        GlobalUnlock(h_global_mem)
        res = OpenClipboard(notepad.hwnd)  # but 0 should be fine as well
        if res:
            if not EmptyClipboard():
                print('ERROR EmptyClipboard failed')
            if SetClipboardData(CF_HDROP, h_global_mem) is None:
                print('ERROR SetClipboardData failed')
            CloseClipboard()
        else:
            print('ERROR OpenClipboard', res)
    else:
        print('ERROR GlobalAlloc', h_global_mem)

main()
</code></pre>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/alexander-anisimov" aria-label="Profile: Alexander-Anisimov">@<bdi>Alexander-Anisimov</bdi></a> , If you ever come back, I hope this helps.  (Otherwise, I hope the fully-updated version helps some other user who wants this feature.)</p>
]]></description><link>https://community.notepad-plus-plus.org/post/102141</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/102141</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Wed, 18 Jun 2025 14:45:46 GMT</pubDate></item><item><title><![CDATA[Reply to Copying file itself into clipboard in Notepad++ on Wed, 18 Jun 2025 14:13:05 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></p>
<p dir="auto">I ASSUME the issue is a <a href="https://learn.microsoft.com/en-us/windows/win32/api/shlobj_core/ns-shlobj_core-dropfiles" rel="nofollow ugc">missing pair of null chars</a>?</p>
<pre><code class="language-py">def main():
    path = ctypes.create_unicode_buffer(notepad.getCurrentFilename())
    path_size = ctypes.sizeof(path)
    df_size = ctypes.sizeof(DROPFILES)
    total_size = df_size + path_size + 2  # The data that follows the structure is a double null-terminated list of file names.

    df = DROPFILES()
    df.pFiles = df_size
    df.fWide = True

    h_global_mem = GlobalAlloc(GHND, total_size)  # allocate enough memory to hold the df struct and the full path
    if h_global_mem:
        lp_global_mem = GlobalLock(h_global_mem)  # lock and get the pointer to the memory
        memcpy(lp_global_mem, addressof(df), df_size)  # first copy the df struct
        memcpy(lp_global_mem+df_size, addressof(path), path_size)  # now copy the full path name
        dump_mem(lp_global_mem, total_size)
        GlobalUnlock(h_global_mem)
        res = OpenClipboard(notepad.hwnd)  # but 0 should be fine as well
        if res:
            if not EmptyClipboard():
                print('ERROR EmptyClipboard failed')
            if SetClipboardData(CF_HDROP, h_global_mem) is None:
                print('ERROR SetClipboardData failed')
            CloseClipboard()
        else:
            print('ERROR OpenClipboard', res)
    else:
        print('ERROR GlobalAlloc', h_global_mem)
</code></pre>
]]></description><link>https://community.notepad-plus-plus.org/post/102139</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/102139</guid><dc:creator><![CDATA[Ekopalypse]]></dc:creator><pubDate>Wed, 18 Jun 2025 14:13:05 GMT</pubDate></item><item><title><![CDATA[Reply to Copying file itself into clipboard in Notepad++ on Wed, 18 Jun 2025 06:31:02 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 />
hmm … if it sometimes works and sometimes doesn’t, then I suspect an alignment problem. I’ll have a look later today and see if that’s the case.</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/fml2" aria-label="Profile: fml2">@<bdi>fml2</bdi></a><br />
thx, yes, that might be helpful.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/102132</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/102132</guid><dc:creator><![CDATA[Ekopalypse]]></dc:creator><pubDate>Wed, 18 Jun 2025 06:31:02 GMT</pubDate></item><item><title><![CDATA[Reply to Copying file itself into clipboard in Notepad++ on Tue, 17 Jun 2025 22:13:57 GMT]]></title><description><![CDATA[<p dir="auto">There is a program called Far Manager, it’s an open source console based file manager. It has the capability to “copy” files so that they can be later “pasted” in Windows Explorer. Maybe we could look how they do it?</p>
]]></description><link>https://community.notepad-plus-plus.org/post/102129</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/102129</guid><dc:creator><![CDATA[fml2]]></dc:creator><pubDate>Tue, 17 Jun 2025 22:13:57 GMT</pubDate></item><item><title><![CDATA[Reply to Copying file itself into clipboard in Notepad++ on Tue, 17 Jun 2025 18:06:00 GMT]]></title><description><![CDATA[<p dir="auto"><em>(ugh.  I accidentally pasted a CF_HDROP while writing my reply, rather than pasting the text I meant, and it confused my browser and I lost the active page, including the whole post I had written.  so now I am recreating it :-( )</em></p>
<p dir="auto">After the OP <a href="/topic/26953">re-asked this question</a>, and I directed him here, I decided to try it out (since I don’t think I tried it last Autumn).</p>
<p dir="auto">My first experiments were unsuccessful.</p>
<p dir="auto">First, like <a class="plugin-mentions-user plugin-mentions-a" href="/user/mkupper" aria-label="Profile: mkupper">@<bdi>mkupper</bdi></a>, I <a href="/post/97679">had problems with <code>addressof</code></a>, but unlike <a class="plugin-mentions-user plugin-mentions-a" href="/user/mkupper" aria-label="Profile: mkupper">@<bdi>mkupper</bdi></a>, I am using PythonScript 3.0.22, so it wasn’t a PS2 issue.  Still, that was easy enough to fix.</p>
<p dir="auto">Second, for the first file I tried, having just the CF_HDROP and trying to paste in Windows Explorer did nothing.<br />
But looking at <a class="plugin-mentions-user plugin-mentions-a" href="/user/ekopalypse" aria-label="Profile: ekopalypse">@<bdi>ekopalypse</bdi></a>’s video, I noticed he had a pretty simple file path, so I tried with a different file, and that one worked.</p>
<p dir="auto">I see that the script is doing the <code>dump_mem</code> to show the structure used, so here’s some information about the differences in the sequences</p>
<ul>
<li>Destination directory: <code>C:\Users\pryrt\Downloads\</code></li>
<li>Source File (works): <code>C:\Users\pryrt\AppData\Local\Temp\test.txt</code>
<ul>
<li>dump_mem =&gt; pythonscript console:<pre><code>[20, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 67, 0, 58, 0, 92, 0, 85, 0, 115, 0, 101, 0, 114, 0, 115, 0, 92, 0, 112, 0, 114, 0, 121, 0, 114, 0, 116, 0, 92, 0, 65, 0, 112, 0, 112, 0, 68, 0, 97, 0, 116, 0, 97, 0, 92, 0, 76, 0, 111, 0, 99, 0, 97, 0, 108, 0, 92, 0, 84, 0, 101, 0, 109, 0, 112, 0, 92, 0, 116, 0, 101, 0, 115, 0, 116, 0, 46, 0, 116, 0, 120, 0, 116, 0, 0, 0]
</code></pre>
</li>
</ul>
</li>
<li>Source File (fails): <code>C:\Users\pryrt\AppData\Roaming\Notepad++\plugins\config\PythonScript\scripts\nppCommunity\26xxx\26260-Clipboard_CF_HDROP_Alans.py</code>
<ul>
<li>dump_mem =&gt; pythonscript console:<pre><code>[20, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 67, 0, 58, 0, 92, 0, 85, 0, 115, 0, 101, 0, 114, 0, 115, 0, 92, 0, 112, 0, 114, 0, 121, 0, 114, 0, 116, 0, 92, 0, 65, 0, 112, 0, 112, 0, 68, 0, 97, 0, 116, 0, 97, 0, 92, 0, 82, 0, 111, 0, 97, 0, 109, 0, 105, 0, 110, 0, 103, 0, 92, 0, 78, 0, 111, 0, 116, 0, 101, 0, 112, 0, 97, 0, 100, 0, 43, 0, 43, 0, 92, 0, 112, 0, 108, 0, 117, 0, 103, 0, 105, 0, 110, 0, 115, 0, 92, 0, 99, 0, 111, 0, 110, 0, 102, 0, 105, 0, 103, 0, 92, 0, 80, 0, 121, 0, 116, 0, 104, 0, 111, 0, 110, 0, 83, 0, 99, 0, 114, 0, 105, 0, 112, 0, 116, 0, 92, 0, 115, 0, 99, 0, 114, 0, 105, 0, 112, 0, 116, 0, 115, 0, 92, 0, 110, 0, 112, 0, 112, 0, 67, 0, 111, 0, 109, 0, 109, 0, 117, 0, 110, 0, 105, 0, 116, 0, 121, 0, 92, 0, 50, 0, 54, 0, 120, 0, 120, 0, 120, 0, 92, 0, 50, 0, 54, 0, 50, 0, 54, 0, 48, 0, 45, 0, 67, 0, 108, 0, 105, 0, 112, 0, 98, 0, 111, 0, 97, 0, 114, 0, 100, 0, 95, 0, 67, 0, 70, 0, 95, 0, 72, 0, 68, 0, 82, 0, 79, 0, 80, 0, 95, 0, 65, 0, 108, 0, 97, 0, 110, 0, 115, 0, 46, 0, 112, 0, 121, 0, 0, 0]

</code></pre>
</li>
</ul>
</li>
</ul>
<p dir="auto">So then I went to <code>c:\TEMP</code> and made a bunch of files (<code>1</code>, <code>12</code>, <code>123</code>, … <code>123456789x</code>, <code>123456789x1</code>, … up to the MAX_PATH limit ), and changed the destination directory to <code>C:\Users\pryrt\Downloads\testfolder\</code></p>
<p dir="auto">I tried with <code>1</code> and <code>12</code> and they both worked…</p>
<pre><code>[20, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 99, 0, 58, 0, 92, 0, 84, 0, 69, 0, 77, 0, 80, 0, 92, 0, 49, 0, 0, 0]
[20, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 99, 0, 58, 0, 92, 0, 84, 0, 69, 0, 77, 0, 80, 0, 92, 0, 49, 0, 50, 0, 0, 0]
</code></pre>
<p dir="auto">I didn’t want to test everything, so I skipped forward to <code>123456789x1</code></p>
<pre><code>[20, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 99, 0, 58, 0, 92, 0, 84, 0, 69, 0, 77, 0, 80, 0, 92, 0, 49, 0, 50, 0, 51, 0, 52, 0, 53, 0, 54, 0, 55, 0, 56, 0, 57, 0, 120, 0, 49, 0, 0, 0]
</code></pre>
<p dir="auto">but it didn’t work when I pasted.</p>
<p dir="auto">(Just to be clear: there is never an error in PythonScript shown; I am just showing the dump, in case there is useful information about the difference there.  On a “working” run, I get the dump shown, and when I paste in my destination directory, it copies the file, or asks if I want to overwrite the file, depending on whether the file exists or not; on “didn’t work” runs, when I paste in the destination directory, apparently nothing happens – no new file is pasted, no request to overwrite, no Windows popup; just nothing happens.  And I can confirm on those that the CF_HDROP still looks the same )</p>
<p dir="auto">Then I went to the last file, with the biggest name, and it worked:</p>
<pre><code>[20, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 99, 0, 58, 0, 92, 0, 84, 0, 69, 0, 77, 0, 80, 0, 92, 0, 49, 0, 50, 0, 51, 0, 52, 0, 53, 0, 54, 0, 55, 0, 56, 0, 57, 0, 120, 0, 49, 0, 50, 0, 51, 0, 52, 0, 53, 0, 54, 0, 55, 0, 56, 0, 57, 0, 120, 0, 49, 0, 50, 0, 51, 0, 52, 0, 53, 0, 54, 0, 55, 0, 56, 0, 57, 0, 120, 0, 49, 0, 50, 0, 51, 0, 52, 0, 53, 0, 54, 0, 55, 0, 56, 0, 57, 0, 120, 0, 49, 0, 50, 0, 51, 0, 52, 0, 53, 0, 54, 0, 55, 0, 56, 0, 57, 0, 120, 0, 49, 0, 50, 0, 51, 0, 52, 0, 53, 0, 54, 0, 55, 0, 56, 0, 57, 0, 120, 0, 49, 0, 50, 0, 51, 0, 52, 0, 53, 0, 54, 0, 55, 0, 56, 0, 57, 0, 120, 0, 49, 0, 50, 0, 51, 0, 52, 0, 53, 0, 54, 0, 55, 0, 56, 0, 57, 0, 120, 0, 49, 0, 50, 0, 51, 0, 52, 0, 53, 0, 54, 0, 55, 0, 56, 0, 57, 0, 120, 0, 49, 0, 50, 0, 51, 0, 52, 0, 53, 0, 54, 0, 55, 0, 56, 0, 57, 0, 120, 0, 49, 0, 50, 0, 51, 0, 52, 0, 53, 0, 54, 0, 55, 0, 56, 0, 57, 0, 120, 0, 49, 0, 50, 0, 51, 0, 52, 0, 53, 0, 54, 0, 55, 0, 56, 0, 57, 0, 120, 0, 49, 0, 50, 0, 51, 0, 52, 0, 53, 0, 54, 0, 55, 0, 56, 0, 57, 0, 120, 0, 49, 0, 50, 0, 51, 0, 52, 0, 53, 0, 54, 0, 55, 0, 56, 0, 57, 0, 120, 0, 49, 0, 50, 0, 51, 0, 52, 0, 53, 0, 54, 0, 55, 0, 56, 0, 57, 0, 120, 0, 49, 0, 50, 0, 51, 0, 52, 0, 53, 0, 54, 0, 55, 0, 56, 0, 57, 0, 120, 0, 49, 0, 50, 0, 51, 0, 52, 0, 53, 0, 54, 0, 55, 0, 56, 0, 57, 0, 120, 0, 49, 0, 50, 0, 51, 0, 52, 0, 53, 0, 54, 0, 55, 0, 56, 0, 57, 0, 120, 0, 49, 0, 50, 0, 51, 0, 52, 0, 53, 0, 54, 0, 55, 0, 56, 0, 57, 0, 120, 0, 49, 0, 50, 0, 51, 0, 52, 0, 53, 0, 54, 0, 55, 0, 56, 0, 57, 0, 120, 0, 49, 0, 50, 0, 51, 0, 52, 0, 53, 0, 54, 0, 55, 0, 56, 0, 57, 0, 120, 0, 49, 0, 50, 0, 51, 0, 52, 0, 53, 0, 54, 0, 55, 0, 56, 0, 57, 0, 120, 0, 49, 0, 50, 0, 51, 0, 52, 0, 53, 0, 54, 0, 55, 0, 56, 0, 57, 0, 120, 0, 49, 0, 50, 0, 51, 0, 52, 0, 53, 0, 54, 0, 55, 0, 56, 0, 57, 0, 120, 0, 49, 0, 50, 0, 51, 0, 52, 0, 53, 0, 54, 0, 55, 0, 56, 0, 57, 0, 120, 0, 0, 0]
</code></pre>
<p dir="auto">… so it’s not path length alone.</p>
<p dir="auto">Then I went back to <code>123456789x1</code>, and this time when I pasted in the destination directory, it worked.</p>
<p dir="auto">I went to some random files, and switched back to the <code>123456789x1</code> file: most of the time, I was able to copy it, but rarely, I was not.  Then I went to <code>c:\TEMP\post.md</code> (this post that I’m typing up – not going to lose my work a second time), and after about a dozen times of trying (closing/reopening file, doing another file in between), it wasn’t working; but just after typing it up that “no matter how many times” I tried, it failed, then I do it one last time, and now <code>post.md</code> pastes just fine.</p>
<p dir="auto">I cannot tell what the difference is, but Windows 11 seems to be flakey on the CF_HDROP.  I don’t know if the other fields that <a class="plugin-mentions-user plugin-mentions-a" href="/user/mkupper" aria-label="Profile: mkupper">@<bdi>mkupper</bdi></a> mentioned would make it more reliable, or if there’s some pauses or delays that the script could insert in order to get it more reliable, or whether it’s 100% up to Win11’s whims.  Anyway, that’s what I saw as I experimented with this script.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/102127</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/102127</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Tue, 17 Jun 2025 18:06:00 GMT</pubDate></item><item><title><![CDATA[Reply to Copying file itself into clipboard in Notepad++ on Thu, 07 Nov 2024 09:08:57 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/mkupper" aria-label="Profile: mkupper">@<bdi>mkupper</bdi></a></p>
<p dir="auto">Maybe I’m missing something but it seems to work for me as well.</p>
<pre><code>Notepad++ v8.7.1   (64-bit)
Build time : Oct 31 2024 - 00:48:56
Path : D:\Tests\npp\_latest\x64\notepad++.exe
Command Line : 
Admin mode : OFF
Local Conf mode : ON
Cloud Config : OFF
Periodic Backup : ON
OS Name : Windows 11 Pro (64-bit)
OS Version : 24H2
OS Build : 26100.1742
Current ANSI codepage : 1252
Plugins : 
    mimeTools (3.1)
    NppConverter (4.6)
    NppExport (0.4)
    PythonScript (2)

</code></pre>
<p dir="auto"><img src="/assets/uploads/files/1730970484212-test_drop.gif" alt="test_drop.gif" class=" img-fluid img-markdown" /></p>
]]></description><link>https://community.notepad-plus-plus.org/post/97727</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/97727</guid><dc:creator><![CDATA[Ekopalypse]]></dc:creator><pubDate>Thu, 07 Nov 2024 09:08:57 GMT</pubDate></item><item><title><![CDATA[Reply to Copying file itself into clipboard in Notepad++ on Wed, 06 Nov 2024 20:51:08 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/mkupper" aria-label="Profile: mkupper">@<bdi>mkupper</bdi></a> said in <a href="/post/97720">Copying file itself into clipboard in Notepad++</a>:</p>
<blockquote>
<p dir="auto">On my WIndows 11 machine that’s not enough information to then do a Paste in Windows Explorer and for a copy of the file to appear.</p>
</blockquote>
<p dir="auto">Well, exactly that worked for me.  And I think it worked for Ekopalypse based on what he said.</p>
<p dir="auto">When I run the script to “copy” the data, Ditto (a clipboard manager) shows:</p>
<p dir="auto"><img src="/assets/uploads/files/1730925948415-edac709a-8e33-4b1d-ab87-128df5156378-image.png" alt="edac709a-8e33-4b1d-ab87-128df5156378-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">(Note that when I took the screenshot, the file-copy was Ditto entry number 2, not 1.)<br />
It sure LOOKS like the copy was a file, from the Ditto data.  I’m not sure what the funky characters are, likely binary data that Ditto isn’t interpreting for good presentation to the user.</p>
<p dir="auto">But I’m not “selling” the script as appropriate for everyone; I didn’t write it and haven’t looked super-hard at it.  As I said, I was reluctant to post it in the first place, given I didn’t know its origins (I <em>still</em> think it was an Eko creation!).</p>
<p dir="auto">If some feel the script isn’t robust or doesn’t work, feel free to take on the task of improving it.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/97721</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/97721</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Wed, 06 Nov 2024 20:51:08 GMT</pubDate></item><item><title><![CDATA[Reply to Copying file itself into clipboard in Notepad++ on Wed, 06 Nov 2024 20:35:31 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> said in <a href="/post/97696">Copying file itself into clipboard in Notepad++</a>:</p>
<blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/alexander-anisimov" aria-label="Profile: Alexander-Anisimov">@<bdi>Alexander-Anisimov</bdi></a> said in <a href="/post/97693">Copying file itself into clipboard in Notepad++</a>:</p>
<blockquote>
<p dir="auto">any solution would be too complex to implement for this</p>
</blockquote>
<p dir="auto">Hmm, solution provided.</p>
</blockquote>
<p dir="auto">The solution that was provided only puts an <code>CF_HDROP</code> format blob into the clipboard. On my WIndows 11 machine that’s not enough information to then do a <code>Paste</code> in Windows Explorer and for a copy of the file to appear. However, if the OP only needs or desires an CF_HDROP then yes, the PythonScript provided does that.</p>
<p dir="auto">If someone wants or needs for Notepad++ to better emulate the behavior for when someone does a copy/paste of files from one Windows Explorer window to another then the solution will need to include more blobs in the package that’s uploaded into the clipboard. On my Windows 11 machine a “Copy” uploads the 16 blobs that I mentioned in a <a href="/post/97676">previous post</a> to this forum thread. Some of those 16 are likely redundant meaning we don’t need all 16 for a paste to work. CF_HDROP is one of the pre-defined clipboard blobs and thus is among the low hanging fruit of the 16. Many of the blobs that Windows Explorer uses are not pre-defined. To inject them into the clipboard as part of a package of blobs you need to first translate the blob name, which is well known, into the current blob numbers being used by Windows Explorer and you add them to the clipboard using the numbers.</p>
<p dir="auto">The blob numbers change from time to time. For example, today I did a copy from Windows Explorer and while the list of blobs looks the same as what I got a couple of days ago I see that<br />
$DataObjectAttributes$ changed from 49905/0xC2F1 to 49647/0xC1EF and<br />
$DataObjectAttributesRequiringElevation$ changed from 49981/0xC33D to 49997/0xC34D.</p>
<p dir="auto">In looking over the list I believe the numbers assigned to 15 of the 16 blobs will change from time to time. The only one that’s constant is CF_HDROP (blob format number 15/0x000F) which is pre-defined. The numbers change because Windows Explorer (explorer.exe) registers the blob names with the clipboard system and gets a blob number or handle for that name back from the clipboard when you log in. Other background processes also are registering names with the clipboard system and getting handles to them. Blob handle numbers can, and likely will, change when you reboot a machine.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/97720</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/97720</guid><dc:creator><![CDATA[mkupper]]></dc:creator><pubDate>Wed, 06 Nov 2024 20:35:31 GMT</pubDate></item><item><title><![CDATA[Reply to Copying file itself into clipboard in Notepad++ on Wed, 06 Nov 2024 11:07:12 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/alexander-anisimov" aria-label="Profile: Alexander-Anisimov">@<bdi>Alexander-Anisimov</bdi></a> said in <a href="/post/97693">Copying file itself into clipboard in Notepad++</a>:</p>
<blockquote>
<p dir="auto">any solution would be too complex to implement for this</p>
</blockquote>
<p dir="auto">Hmm, solution provided.<br />
Set up the ability to run the given script, then assign whatever free keycombo you want for it.<br />
There are details about using scripting <a href="https://community.notepad-plus-plus.org/topic/23039/faq-desk-how-to-install-and-run-a-script-in-pythonscript">HERE</a>.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/97696</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/97696</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Wed, 06 Nov 2024 11:07:12 GMT</pubDate></item><item><title><![CDATA[Reply to Copying file itself into clipboard in Notepad++ on Wed, 06 Nov 2024 06:08:04 GMT]]></title><description><![CDATA[<p dir="auto">Given the above geneltmen’s exposition, it look slike it does not worth it, and any solution would be too complex to implement for this. Probably just use right mouse button -&gt; open file folder, then ctrl+c</p>
<p dir="auto">Thanks everybody</p>
]]></description><link>https://community.notepad-plus-plus.org/post/97693</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/97693</guid><dc:creator><![CDATA[Alexander Anisimov]]></dc:creator><pubDate>Wed, 06 Nov 2024 06:08:04 GMT</pubDate></item><item><title><![CDATA[Reply to Copying file itself into clipboard in Notepad++ on Tue, 05 Nov 2024 08:28:25 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> - Sorry I’m late to the party, but real life is keeping me very busy at the moment. :-(<br />
I looked through my script, but no, it doesn’t seem to be mine … maybe it’s one of the scripts that fell victim to my hard disk failure and that I hadn’t backed up. But I can’t really remember that I ever needed this either. Anyway … but your script works :)</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/mkupper" aria-label="Profile: mkupper">@<bdi>mkupper</bdi></a> - Python doesn’t know where to look for the method. Change <code>addressof</code> t0 <code>ctypes.addressof</code> and I <code>assume</code> it will work with PS2 too.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/97681</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/97681</guid><dc:creator><![CDATA[Ekopalypse]]></dc:creator><pubDate>Tue, 05 Nov 2024 08:28:25 GMT</pubDate></item><item><title><![CDATA[Reply to Copying file itself into clipboard in Notepad++ on Tue, 05 Nov 2024 03:59:35 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> Is that for Python 3?  I got an error with Python 2.7:</p>
<pre><code class="language-txt">Python 2.7.18 (v2.7.18:8d21aa21f2, Apr 20 2020, 13:19:08) [MSC v.1500 32 bit (Intel)]
Initialisation took 375ms
Ready.
Traceback (most recent call last):
  File "C:\Users\MKupper\AppData\Roaming\Notepad++\plugins\Config\PythonScript\scripts\FileClipboard.py", line 84, in &lt;module&gt;
    main()
  File "C:\Users\MKupper\AppData\Roaming\Notepad++\plugins\Config\PythonScript\scripts\FileClipboard.py", line 69, in main
    memcpy(lp_global_mem, addressof(df), df_size)  # first copy the df struct
NameError: global name 'addressof' is not defined
</code></pre>
]]></description><link>https://community.notepad-plus-plus.org/post/97679</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/97679</guid><dc:creator><![CDATA[mkupper]]></dc:creator><pubDate>Tue, 05 Nov 2024 03:59:35 GMT</pubDate></item><item><title><![CDATA[Reply to Copying file itself into clipboard in Notepad++ on Tue, 05 Nov 2024 01:32:34 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/mkupper" aria-label="Profile: mkupper">@<bdi>mkupper</bdi></a></p>
<p dir="auto">I’m sorry but I think you are still (mostly) way off base.  :-(</p>
<hr />
<p dir="auto">OK, since <a class="plugin-mentions-user plugin-mentions-a" href="/user/ekopalypse" aria-label="Profile: Ekopalypse">@<bdi>Ekopalypse</bdi></a> hasn’t chimed in, I’m going to go ahead and post this code that I think originated with him and somehow made its way to me, possibly via a third party.<br />
I’m not sure about <em>anything</em>, because I (unusually) have no extra notes about it.  :-(</p>
<p dir="auto">I tested this script code and it worked for me under PythonScript 3.x, but I can see some possible holes in the script just giving it a glance-over, so users beware.</p>
<p dir="auto">It copies the active tab to the clipboard as a file.</p>
<pre><code class="language-py">import ctypes
from ctypes import wintypes

CF_HDROP = 15
GHND = 66

OpenClipboard = ctypes.windll.user32.OpenClipboard
OpenClipboard.argtypes = [ wintypes.HWND ]
OpenClipboard.restype = wintypes.BOOL

EmptyClipboard = ctypes.windll.user32.EmptyClipboard
EmptyClipboard.argtypes = []
EmptyClipboard.restype = wintypes.BOOL

SetClipboardData = ctypes.windll.user32.SetClipboardData
SetClipboardData.argtypes = [ wintypes.UINT, wintypes.HANDLE ]
SetClipboardData.restype = wintypes.HANDLE

CloseClipboard = ctypes.windll.user32.CloseClipboard
CloseClipboard.argtypes = []
CloseClipboard.restype = wintypes.BOOL

GlobalLock = ctypes.windll.kernel32.GlobalLock
GlobalLock.argtypes = [ wintypes.HGLOBAL ]
GlobalLock.restype = wintypes.LPVOID

GlobalAlloc = ctypes.windll.kernel32.GlobalAlloc
GlobalAlloc.argtypes = [wintypes.UINT, ctypes.c_size_t]
GlobalAlloc.restype = wintypes.HGLOBAL

GlobalUnlock = ctypes.windll.kernel32.GlobalUnlock
GlobalUnlock.argtypes = [ wintypes.HGLOBAL ]
GlobalUnlock.restype = wintypes.BOOL

memcpy = ctypes.cdll.msvcrt.memcpy
memcpy.argtypes = [ctypes.c_void_p, ctypes.c_void_p, ctypes.c_size_t]

class POINT(ctypes.Structure):
    _fields_ = [
        ('x', wintypes.LONG),
        ('y', wintypes.LONG)
    ]

class DROPFILES(ctypes.Structure):
    _fields_ = [
        ('pFiles', wintypes.DWORD),
        ('pt', POINT),
        ('fNC', wintypes.BOOL),
        ('fWide', wintypes.BOOL),
    ]

def dump_mem(addr, size):
    mem = list((ctypes.c_ubyte * size).from_address(addr))
    print(mem)

def main():
    path = ctypes.create_unicode_buffer(notepad.getCurrentFilename())
    path_size = ctypes.sizeof(path)
    df_size = ctypes.sizeof(DROPFILES)
    total_size = df_size + path_size

    df = DROPFILES()
    df.pFiles = df_size
    df.fWide = True

    h_global_mem = GlobalAlloc(GHND, total_size)  # allocate enough memory to hold the df struct and the full path
    if h_global_mem:
        lp_global_mem = GlobalLock(h_global_mem)  # lock and get the pointer to the memory
        memcpy(lp_global_mem, addressof(df), df_size)  # first copy the df struct
        memcpy(lp_global_mem+df_size, addressof(path), path_size)  # now copy the full path name
        dump_mem(lp_global_mem, total_size)
        GlobalUnlock(h_global_mem)
        res = OpenClipboard(0)
        if res:
            EmptyClipboard()
            SetClipboardData(CF_HDROP, h_global_mem)
            CloseClipboard()
        else:
            print('ERROR OpenClipboard', res)

    else:
        print('ERROR GlobalAlloc', h_global_mem)

main()
</code></pre>
]]></description><link>https://community.notepad-plus-plus.org/post/97676</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/97676</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Tue, 05 Nov 2024 01:32:34 GMT</pubDate></item><item><title><![CDATA[Reply to Copying file itself into clipboard in Notepad++ on Mon, 04 Nov 2024 23:16:56 GMT]]></title><description><![CDATA[<p dir="auto">Thank you <a class="plugin-mentions-user plugin-mentions-a" href="/user/alan-kilborn" aria-label="Profile: Alan-Kilborn">@<bdi>Alan-Kilborn</bdi></a>.  Using “Copy” from Windows Explorer puts 16 blobs of data on the clipboard. I don’t know Python well enough to know if it’s able to generate the blobs or if it would have to be done using a Notepad++ plugin.</p>
<p dir="auto">A Notepad++ plugin that comes close to what you need is <a href="https://github.com/JetNpp/NppExport" rel="nofollow ugc">NppExport</a>. It already has code that formats the Notepad++ text into a variety of Windows clipboard formats.</p>
<p dir="auto">Copy of text from Notepad++,<br />
using Notepad++'s “Get full file path”, and<br />
using <code>editor.copyText()</code> from PythonScript within Notepad++ all generate the same set of four blobs:</p>
<pre><code class="language-txt">CountClipboardFormats() returns 4
EnumClipboardFormats() results:
  Format#  Format#  NameLen   Format Name
       13 / 0x000D,       0, $CF_UNICODETEXT$
       16 / 0x0010,       0, $CF_LOCALE$
        1 / 0x0001,       0, $CF_TEXT$
        7 / 0x0007,       0, $CF_OEMTEXT$
</code></pre>
<p dir="auto">Copy of a file from Windows Explorer generates:</p>
<pre><code class="language-txt">CountClipboardFormats() returns 16
EnumClipboardFormats() results:
  Format#  Format#  NameLen   Format Name
    49161 / 0xC009,      10, $DataObject$
    49344 / 0xC0C0,      18, $Shell IDList Array$
    49905 / 0xC2F1,      20, $DataObjectAttributes$
    49981 / 0xC33D,      38, $DataObjectAttributesRequiringElevation$
       15 / 0x000F,       0, $CF_HDROP$
    49367 / 0xC0D7,      15, $DropDescription$
    49158 / 0xC006,       8, $FileName$
    49267 / 0xC073,      12, $FileContents$
    49159 / 0xC007,       9, $FileNameW$
    49348 / 0xC0C4,      20, $FileGroupDescriptorW$
    49362 / 0xC0D2,      20, $DropEffectFolderList$
    49370 / 0xC0DA,      11, $UIDisplayed$
    49345 / 0xC0C1,      20, $Shell Object Offsets$
    49353 / 0xC0C9,      20, $Preferred DropEffect$
    49369 / 0xC0D9,       9, $AsyncFlag$
    49171 / 0xC013,      16, $Ole Private Data$
</code></pre>
<p dir="auto">Someone wanting to emulate Windows Explorer’s copy function would need to figure out the internal format of each of those blobs. It’s still a “project” to figure all that out but I would add the code to the <code>NppExport</code> plugin which you can then activate via a keyboard shortcut.  Hopefully, the author of NppExport will make the source code available. At present it only seems to be a pre-compiled DLL.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/97672</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/97672</guid><dc:creator><![CDATA[mkupper]]></dc:creator><pubDate>Mon, 04 Nov 2024 23:16:56 GMT</pubDate></item><item><title><![CDATA[Reply to Copying file itself into clipboard in Notepad++ on Sun, 03 Nov 2024 12:21:55 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/mkupper" aria-label="Profile: mkupper">@<bdi>mkupper</bdi></a> <a class="plugin-mentions-user plugin-mentions-a" href="/user/guy038" aria-label="Profile: guy038">@<bdi>guy038</bdi></a></p>
<blockquote>
<p dir="auto">are you seeking something where the path to a file is loaded into the clipboard as with Edit / Copy to Clipboard / Copy Current Full File Path? Or do you want both the full path plus the file data loaded into a single clipboard element?</p>
</blockquote>
<p dir="auto">No and no.</p>
<p dir="auto">What OP wants is analogous to what happens in Windows Explorer when you issue a “Copy” there.</p>
<p dir="auto">What happens when you issue a “Copy” in Windows Explorer?<br />
Well, nothing you can see, until you “Paste”.<br />
But how can Windows Explorer paste if it doesn’t remember the copy somehow?<br />
The answer is that it puts non-textual “reference(s)” into the clipboard so that it can find these files later.</p>
<p dir="auto">If you issue a “Copy” in Windows Explorer, then activate Notepad++ and “Paste”, does it do anything?  Does it paste the pathname of the copied file?  No, because what is in the clipboard is not text.</p>
<p dir="auto">So…OP wants to have an active tab in Notepad++ that he issues some sort of new “copy file” command on (which does NOT copy the text of the file path and does NOT copy the textual contents of the file), then, e.g. activate Windows Explorer, navigate to a folder, issue a “paste” and have the file appear there in the file system.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/97515</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/97515</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Sun, 03 Nov 2024 12:21:55 GMT</pubDate></item><item><title><![CDATA[Reply to Copying file itself into clipboard in Notepad++ on Sun, 03 Nov 2024 10:25:29 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/mkupper" aria-label="Profile: mkupper">@<bdi>mkupper</bdi></a> I have an example, I’ve set up a hotkey Ctrl+T to put filepath of a file into clipboard, I need a similar thing for putting the actual file into clipboard, not it’s filepath.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/97514</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/97514</guid><dc:creator><![CDATA[Alexander Anisimov]]></dc:creator><pubDate>Sun, 03 Nov 2024 10:25:29 GMT</pubDate></item><item><title><![CDATA[Reply to Copying file itself into clipboard in Notepad++ on Sat, 02 Nov 2024 20:10:55 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/alexander-anisimov" aria-label="Profile: Alexander-Anisimov">@<bdi>Alexander-Anisimov</bdi></a> said in <a href="/post/97451">Copying file itself into clipboard in Notepad++</a>:</p>
<blockquote>
<p dir="auto">Hi, there is a command in Hotkeys to copy path to file or filename, and a hotkey can be attributed to that action.<br />
A question: is there a way to copy a file itself, not the path to it? but puttin a file itself (putting it into clipboard) - without leaving Notepad++?</p>
</blockquote>
<p dir="auto">Do you want to do a <code>Ctrl+A</code> (select-all), and then <code>Ctrl+C</code> (Copy) or are you seeking something where the path to a file is loaded into the clipboard as with <code>Edit / Copy to Clipboard / Copy Current Full File Path</code>?  Or do you want both the full path plus the file data loaded into a single clipboard element? If both then what’s the delimiter between the path and data? All of these are achievable with Notepad++ plus the Python plugin.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/97498</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/97498</guid><dc:creator><![CDATA[mkupper]]></dc:creator><pubDate>Sat, 02 Nov 2024 20:10:55 GMT</pubDate></item><item><title><![CDATA[Reply to Copying file itself into clipboard in Notepad++ on Sat, 02 Nov 2024 10:24:50 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/alexander-anisimov" aria-label="Profile: Alexander-Anisimov">@<bdi>Alexander-Anisimov</bdi></a></p>
<p dir="auto">It can be achieved, but you’d need to use a scripting plugin for Notepad++.<br />
I’ve seen some script code for doing it, but I can’t find a reference to it right now.<br />
I do remember that it involves setting the clipboard data to CF_HDROP format, but that’s about all I can recall.</p>
<p dir="auto">Maybe <a class="plugin-mentions-user plugin-mentions-a" href="/user/ekopalypse" aria-label="Profile: Ekopalypse">@<bdi>Ekopalypse</bdi></a> has a working example?</p>
]]></description><link>https://community.notepad-plus-plus.org/post/97479</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/97479</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Sat, 02 Nov 2024 10:24:50 GMT</pubDate></item><item><title><![CDATA[Reply to Copying file itself into clipboard in Notepad++ on Sat, 02 Nov 2024 09:08:50 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> that’s what I do, which is several steps action. I need it to be more straightforward. I thought there is a way (macro etc.)</p>
]]></description><link>https://community.notepad-plus-plus.org/post/97478</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/97478</guid><dc:creator><![CDATA[Alexander Anisimov]]></dc:creator><pubDate>Sat, 02 Nov 2024 09:08:50 GMT</pubDate></item><item><title><![CDATA[Reply to Copying file itself into clipboard in Notepad++ on Thu, 31 Oct 2024 10:23:49 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/alexander-anisimov" aria-label="Profile: Alexander-Anisimov">@<bdi>Alexander-Anisimov</bdi></a></p>
<p dir="auto">I think you mean a “reference” to a file, so you can e.g. subsequently switch to the Windows Explorer and then paste the file to another place in the file system.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/97459</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/97459</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Thu, 31 Oct 2024 10:23:49 GMT</pubDate></item></channel></rss>