Community
    • Login

    macro-writing

    Scheduled Pinned Locked Moved General Discussion
    4 Posts 2 Posters 561 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.
    • khk khkK Offline
      khk khk
      last edited by

      Re: macro-writing

      Dear Alan Kilborn,

      your advice to save a macro and look into shortcuts.xml doesn’t work; there still is only the macro, which was delivered with the installation -->

      <Macros>
      <Macro name=“Trim Trailing Space and Save” Ctrl=“no” Alt=“yes” Shift=“yes” Key=“83”>
      <Action type=“2” message=“0” wParam=“42024” lParam=“0” sParam=“” />
      <Action type=“2” message=“0” wParam=“41006” lParam=“0” sParam=“” />
      </Macro>
      </Macros>

      But I would like to have a new one like ‘change ‘A’ to ‘B’’ with the Shortcut ‘Ctrl+Alt+Y’.

      How to do that?

      Thanx in advance

      Kurt (Austria)

      Alan KilbornA 2 Replies Last reply Reply Quote 0
      • Alan KilbornA Offline
        Alan Kilborn @khk khk
        last edited by

        @khk-khk said in macro-writing:

        doesn’t work

        Well it doesn’t work to provide any documentation on the macro.
        But I didn’t say it would do that.

        I would like to have a new one like ‘change ‘A’ to ‘B’’ with the Shortcut ‘Ctrl+Alt+Y’.

        So you would:

        • bring up the Replace window by pressing Ctrl+h
        • set up the parameters of your replacement: Find what = A, Replace with = B, and any other settings in the Replace window that you want
        • start macro recording
        • press the Replace All button (or whatever kind of replacement op meets your need)
        • stop macro recording
        • save macro assigning the Ctrl+Alt+y key combo to it
        1 Reply Last reply Reply Quote 2
        • Alan KilbornA Offline
          Alan Kilborn @khk khk
          last edited by

          @khk-khk

          there still is only the macro, which was delivered with the installation

          Maybe you are looking at the wrong shortcuts.xml ??

          1 Reply Last reply Reply Quote 1
          • Alan KilbornA Offline
            Alan Kilborn
            last edited by

            The discussion is continued HERE.

            1 Reply Last reply Reply Quote 0

            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