Community
    • Login

    Macros Somehow Replaced By Whatever Is Copied To The Clipboard

    Scheduled Pinned Locked Moved General Discussion
    macromacrosclipboardbroken
    2 Posts 2 Posters 473 Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Reo ChatwinR Offline
      Reo Chatwin
      last edited by

      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)
      
      PeterJonesP 1 Reply Last reply Reply Quote 0
      • PeterJonesP Online
        PeterJones @Reo Chatwin
        last edited by

        @Reo-Chatwin ,

        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). Save shortcuts.xml and restart Notepad++, and now your macro will have the longer string rather than the shorter.

        1 Reply Last reply Reply Quote 1

        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

        With your input, this post could be even better 💗

        Register Login
        • First post
          Last post
        The Community of users of the Notepad++ text editor.
        Powered by NodeBB | Contributors