• Login
Community
  • Login

Macro command reference

Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
4 Posts 3 Posters 3.6k 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.
  • A
    alexolog
    last edited by Apr 3, 2021, 5:09 AM

    I recorded a macro:

        <Macro name="F-list URLs" Ctrl="no" Alt="no" Shift="no" Key="0">
            <Action type="3" message="1700" wParam="0" lParam="0" sParam="" />
            <Action type="3" message="1601" wParam="0" lParam="0" sParam="^(https://www.example.com/([^/\r\n]+))/?$" />
            <Action type="3" message="1625" wParam="0" lParam="2" sParam="" />
            <Action type="3" message="1602" wParam="0" lParam="0" sParam='&lt;b&gt; &lt;a href=&quot;\L\1\E&quot;&gt;\2&lt;/a&gt;&lt;/b&gt;&lt;br/&gt;' />
            <Action type="3" message="1702" wParam="0" lParam="768" sParam="" />
            <Action type="3" message="1701" wParam="0" lParam="1609" sParam="" />
            <Action type="3" message="1700" wParam="0" lParam="0" sParam="" />
            <Action type="3" message="1601" wParam="0" lParam="0" sParam='%20(?!.+&quot;&gt;)' />
            <Action type="3" message="1625" wParam="0" lParam="2" sParam="" />
            <Action type="3" message="1602" wParam="0" lParam="0" sParam="\x20" />
            <Action type="3" message="1702" wParam="0" lParam="768" sParam="" />
            <Action type="3" message="1701" wParam="0" lParam="1609" sParam="" />
        </Macro>
    

    I would like to understand exactly what it is doing, and possibly modify it, but I could not find any reference of the messages and parameters. Similar questions have been asked before but the answers all link to a wiki which no longer exists.

    A 1 Reply Last reply Apr 3, 2021, 12:11 PM Reply Quote 0
    • A
      Alan Kilborn @alexolog
      last edited by Apr 3, 2021, 12:11 PM

      @alexolog

      https://npp-user-manual.org/docs/searching/#searching-actions-when-recorded-as-macros

      1 Reply Last reply Reply Quote 1
      • A
        alexolog
        last edited by Apr 3, 2021, 4:34 PM

        Thanks for that!
        Is there a list of messages that are not search-related?

        P 1 Reply Last reply Apr 3, 2021, 5:15 PM Reply Quote 0
        • P
          PeterJones @alexolog
          last edited by Apr 3, 2021, 5:15 PM

          @alexolog ,

          See the config files: <Macros> section of the npp-user-manual.org site.

          1 Reply Last reply Reply Quote 0
          1 out of 4
          • First post
            1/4
            Last post
          The Community of users of the Notepad++ text editor.
          Powered by NodeBB | Contributors