Macros Somehow Replaced By Whatever Is Copied To The Clipboard
-
I have an issue where when I run a recorded macro, what is pasted is whatever is in the Windows Clipboard instead of the recorded macro.
How can I resolve this?
Here is my debug info:
Notepad++ v8.4.5 (32-bit)
Build time : Sep 3 2022 - 03:56:37
Path : C:\Program Files (x86)\Notepad++\notepad++.exe
Command Line :
Admin mode : OFF
Local Conf mode : OFF
Cloud Config : OFF
OS Name : Windows 10 Enterprise (64-bit)
OS Version : 21H2
OS Build : 19044.2006
Current ANSI codepage : 1252
Plugins :
mimeTools (2.8) NppConverter (4.4) NppExport (0.4)
-
The macro recorder will store the actions you take when recording the macro: since you recorded hitting Paste (or equivalently the action Edit > Paste), that is the action that will be recorded. If you want the macro to type text, then you will have to type the text instead of pasting it… then the macro will type the exact text that you typed.
If you’ve got a lot of text to type for the macro: instead of recording that long text, just type an indicator. Then save the macro, exit Notepad++, and reload Notepad++. Edit the
shortcuts.xml
in your AppData Notepad++ and put in the longer string(s) into the places held by the placeholder (the macro will record one typed character per action, but you can actually put longer strings there). Saveshortcuts.xml
and restart Notepad++, and now your macro will have the longer string rather than the shorter.