shortcuts.xml file
-
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
-
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"
ortype="1"
, themessage="..."
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), theitem id="...."
will list the appropriate value for each command. - When
type="3"
for search/replace macros, I believe themessage="..."
numbers come from FindReplaceDlg_rc.h
- When
-
@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.
-
@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… -
@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. -
@PeterJones
Thanks. I think this’ll do what I need. Mostly I want to decipher macros I recorded.Pat
-
Thanks to all for replying!
Pat
-
@dinkumoil said in shortcuts.xml file:
NppUISpy
Very useful plugin, used it to see what the Set Language command was. Thanks