Converting a Macro into a plugin
-
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 … etcAny advice would be appreciated
Thanks
Jerome -
@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.
-
@Alan-Kilborn
Thanks for replyingBasically 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 dataI 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 dataA 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) -
@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.
-
@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 yourshortcuts.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> ```