List of available macro messages / types

  • Hello,

    I’m creating a macro for a XML and want to customize the macro script, but I don’t know which messages and types exists and what they do.
    Can someone post a list about all/some messages with types that describes what they do?

    <Action type=“0” message=“2178” wParam=“0” lParam=“0” sParam="" />

    Which types are available on message 2178 and what do they do?

    Thanks in advance :)

  • Those message ids are defined by Scintilla (which is what Notepad++ uses to manipulate the text). The message ids are defined in this header file. So from your example 2178 is the SCI_COPY command. You can then reference the Scintilla documentation to see what those commands do and if they take any parameters. Keep in mind not every command is able to be used within a macro.

    And I’m not really sure what the type field does. You may have to try recording some macros and then see how Notepad++ saves them.

  • Hello Rudi,

    in addition, the npp wiki has some information about this.


Log in to reply