Community
    • Login

    Question about Macros

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    macros
    3 Posts 2 Posters 1.8k Views
    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
      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
        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
          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
          • First post
            Last post
          The Community of users of the Notepad++ text editor.
          Powered by NodeBB | Contributors