Community
    • Login

    Question about Macros

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    macros
    3 Posts 2 Posters 2.0k 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.
    • MaxsteinfeldM Offline
      Maxsteinfeld
      last edited by

      Hi
      need help:
      i want to create a Macro, that’s copy a line of words into the clipboard and then closes npp automatically !
      What I do: the copy sequence works fine - but how can i add a shortcut to close npp ?
      I think i have to edit the “shortcuts.xml”-file and must add a line which closes npp.
      Does anybody know the correct command - pls help
      Bernd

      Claudia FrankC 1 Reply Last reply Reply Quote 0
      • Claudia FrankC Offline
        Claudia Frank @Maxsteinfeld
        last edited by

        @Bernd-Roeckerath

        I think i have to edit the “shortcuts.xml”-file and must add a line which closes npp.

        Add the line to your save macro.

        <Action type="2" message="0" wParam="41011" lParam="0" sParam=""/>
        

        Note, I did not test what happens if you have unsaved data open while running
        the macro - so better test or make sure it cannot corrupt important data.

        Cheers
        Claudia

        1 Reply Last reply Reply Quote 2
        • MaxsteinfeldM Offline
          Maxsteinfeld
          last edited by

          Hi Claudia,
          that works perfect !! many thx :-)
          feedback: if you make changes before running the modified macro
          npp asks if the changes should be saved.
          best regards
          Bernd

          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