• Login
Community
  • Login

shortcuts.xml file

Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
8 Posts 5 Posters 967 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.
  • P
    pbook
    last edited by Sep 30, 2019, 10:46 PM

        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
    • P
      PeterJones
      last edited by Sep 30, 2019, 11:53 PM

      @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
      A D P 3 Replies Last reply Oct 1, 2019, 1:23 AM Reply Quote 1
      • A
        Alan Kilborn @PeterJones
        last edited by Oct 1, 2019, 1:23 AM

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

        P 1 Reply Last reply Oct 1, 2019, 2:01 AM Reply Quote 2
        • P
          PeterJones @Alan Kilborn
          last edited by Oct 1, 2019, 2:01 AM

          @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
          • D
            dinkumoil @PeterJones
            last edited by Oct 1, 2019, 8:37 AM

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

            P 1 Reply Last reply Jan 4, 2020, 9:37 AM Reply Quote 4
            • P
              pbook @PeterJones
              last edited by Oct 3, 2019, 8:05 PM

              @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
              • P
                pbook
                last edited by Oct 3, 2019, 9:30 PM

                Thanks to all for replying!

                Pat

                1 Reply Last reply Reply Quote 0
                • P
                  Peter Brand @dinkumoil
                  last edited by Jan 4, 2020, 9:37 AM

                  @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
                  • First post
                    Last post
                  The Community of users of the Notepad++ text editor.
                  Powered by NodeBB | Contributors