Navigation

    Community

    • Login
    • Search
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    Question about Macros

    Help wanted · · · – – – · · ·
    macros
    2
    3
    1691
    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.
    • Maxsteinfeld
      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 Frank 1 Reply Last reply Reply Quote 0
      • Claudia Frank
        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
        • Maxsteinfeld
          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
          Copyright © 2014 NodeBB Forums | Contributors