Community
    • Login

    shortcuts.xml file

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    8 Posts 5 Posters 1.6k Views 3 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.
    • pbookP Offline
      pbook
      last edited by

          Hi All,
      

      Below is a sample entry.
      Is there a list of the values for ‘type’, ‘message’, etc.?
      I’d like to be able to edit this file.

      <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>

      Thanks!

      Pat

      1 Reply Last reply Reply Quote 0
      • PeterJonesP Online
        PeterJones
        last edited by

        @pbook,

        Unfortunately, that documentation has not be transferred into the new docs location.

        Fortunately, the Wayback Machine will help: look here

        Some of the links in that archived page will be out of date:

        • When type="0" or type="1", the message="..." value comes from Scintilla.iface
        • When type="2", the wParam is the Notepad++ action ID for a given command. If you look in your installation’s ...\localization\english.xml (or language of choice), the item id="...." will list the appropriate value for each command.
        • When type="3" for search/replace macros, I believe the message="..." numbers come from FindReplaceDlg_rc.h
        Alan KilbornA dinkumoilD pbookP 3 Replies Last reply Reply Quote 1
        • Alan KilbornA Offline
          Alan Kilborn @PeterJones
          last edited by

          @PeterJones said in shortcuts.xml file:

          When type=“3” for search/replace macros

          I had a look at the new docs and these (the type 3) actually are well-defined in the new docs, in the Searching section.

          PeterJonesP 1 Reply Last reply Reply Quote 2
          • PeterJonesP Online
            PeterJones @Alan Kilborn
            last edited by

            @Alan-Kilborn said in shortcuts.xml file:

            well-defined in the new docs, in the Searching section

            Oh, right… I’d forgotten that
            https://npp-user-manual.org/docs/searching/#searching-actions-when-recorded-as-macros was recently added…

            1 Reply Last reply Reply Quote 2
            • dinkumoilD Offline
              dinkumoil @PeterJones
              last edited by

              @PeterJones said in shortcuts.xml file:

              When type=“2”, the wParam is the Notepad++ action ID for a given command.

              To find the value of the wParam tag one could use my NppUISpy plugin. I made it especially for that purpose as a tool for plugin developers and power users.

              Peter BrandP 1 Reply Last reply Reply Quote 4
              • pbookP Offline
                pbook @PeterJones
                last edited by

                @PeterJones
                Thanks. I think this’ll do what I need. Mostly I want to decipher macros I recorded.

                Pat

                1 Reply Last reply Reply Quote 1
                • pbookP Offline
                  pbook
                  last edited by

                  Thanks to all for replying!

                  Pat

                  1 Reply Last reply Reply Quote 0
                  • Peter BrandP Offline
                    Peter Brand @dinkumoil
                    last edited by

                    @dinkumoil said in shortcuts.xml file:

                    NppUISpy

                    Very useful plugin, used it to see what the Set Language command was. Thanks

                    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