Community
    • Login

    Converting a Macro into a plugin

    Scheduled Pinned Locked Moved Notepad++ & Plugin Development
    5 Posts 3 Posters 433 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.
    • Jerome EvansJ
      Jerome Evans
      last edited by

      Hi Everybody

      I have a Macro I am using and would like to turn it into a Plugin if possible
      Is this possible?

      This is my first attempt at making a plugin for Notepad++
      I have downloaded the templates … etc

      Any advice would be appreciated

      Thanks
      Jerome

      Alan KilbornA 1 Reply Last reply Reply Quote 1
      • Alan KilbornA
        Alan Kilborn @Jerome Evans
        last edited by

        @Jerome-Evans said in Converting a Macro into a plugin:

        I have a Macro I am using and would like to turn it into a Plugin if possible
        Is this possible?

        Possibly, but it would be a lot of work to do it.
        I suppose you have a good reason for wanting to do something like that?

        If you can tell us more, perhaps we can guide you into an easier way of accomplishing your goal.

        Jerome EvansJ 1 Reply Last reply Reply Quote 0
        • Jerome EvansJ
          Jerome Evans @Alan Kilborn
          last edited by

          @Alan-Kilborn
          Thanks for replying

          Basically the Macro sort of decodes a log file that is produced from a bit of software I work with
          And makes it easier to read without losing the original data

          I would like to make it into a plugin so more people can use it
          And not just me who has to do all the updating of the source data

          A snippet of what the macro does -

          2023-11-07T19:47:01,491 - DoIP address: 1726 BCM TX >>> 22DD06 (Read DID DD06 - ‘Power Mode’)
          2023-11-07T19:47:01,520 - DoIP address: 1726 BCM RX <<< 62DD0666 (Power Mode - ‘Ignition On’)
          2023-11-07T19:47:03,622 - DoIP address: 1716 GWM TX >>> 22402A (Read DID 402A - ‘Vehicle Battery Voltage’)
          2023-11-07T19:47:03,629 - DoIP address: 1716 GWM RX <<< 62402A (DID 402A - ‘Vehicle Battery Voltage - In Hex’) = A5
          2023-11-07T19:47:09,259 - DoIP address: 1726 BCM TX >>> 3E80 (Diagnostic Tester Present - No response Required)
          2023-11-07T19:47:10,143 - DoIP address: 1726 BCM TX >>> 1003 (Diagnostic Session Control - ECU Extended Session)
          2023-11-07T19:47:10,168 - DoIP address: 1726 BCM RX <<< 5003 (Diagnostic Session Control - SUCCESS! Extended Session)001901F4
          2023-11-07T19:47:11,249 - DoIP address: 1726 BCM TX >>> 2703 (Secure Access - Request Seed)
          2023-11-07T19:47:11,283 - DoIP address: 1726 BCM RX <<< 6703 (Secure Access - SUCCESS! Seed Generated) =6D0964
          2023-11-07T19:47:12,259 - DoIP address: 1726 BCM TX >>> 3E80 (Diagnostic Tester Present - No response Required)

          Alan KilbornA PeterJonesP 2 Replies Last reply Reply Quote 0
          • Alan KilbornA
            Alan Kilborn @Jerome Evans
            last edited by Alan Kilborn

            @Jerome-Evans said in Converting a Macro into a plugin:

            I would like to make it into a plugin so more people can use it

            I did a very similar thing one time with vehicle diagnostic communication logs, and it was wildly popular with other users.

            I just used the PythonScript plugin and wrote Python code to do it, all within Notepad++. It had coloring of elements, click-jump between the “pretty” file and the “raw” file, ISO15765 segmented message combining, etc.

            The Python was in a single file (for easy of sharing with others).

            It all worked out well.

            A sanitized hint of what I was doing with colorization of data can be seen in THIS POST, from THIS THREAD.

            1 Reply Last reply Reply Quote 1
            • PeterJonesP
              PeterJones @Jerome Evans
              last edited by

              @Jerome-Evans said in Converting a Macro into a plugin:

              I would like to make it into a plugin so more people can use it

              As another alternative to either “plugin” or “PythonScript”, if you just copy the <Macro ...>...</Macro> element from your shortcuts.xml file and paste it in the forum, and other people can just use your macro (or customize it to their liking)

              For formatting the XML excerpt, select your pasted macro and use the </> button, or manually put ``` on the line before and after in your post, like:

              ```
              <Macro name=...>
                  <Action ... />
                  ...
              </Macro>
              ```
              
              1 Reply Last reply Reply Quote 1
              • First post
                Last post
              The Community of users of the Notepad++ text editor.
              Powered by NodeBB | Contributors