Keyboard Maestro 8.2.2d1 “Code Commentor” Macro


EDIT: 2018-07-13 14:08 GMT-5
• I didn't see your above post until after I posted this.
• Well done!


I recommend that users edit the OP and add a line like this, at or near the top of the post:

UPDATED: <date/time of update>
<reason for update>

Then, after updating the OP, I select the update lines as a quote in a reply so that everyone gets notified of the update.

When providing a new version of a macro, it is generally best to replace the prior macro (download and image) with the new version. If you really need separate versions of the macro because they do different things, then I would provide a list of versions and what they do:

Version 1 -- does x
Version 2 -- does y
etc

If the macros are significantly different, you may want to post each in a separate topic, and reference the others in each topic.

Having said that, when I have a macro that I want to have different options on how it works or what it does, I usually:

  • Use a "MacroOptions" Variable at the top of the macro to specify which option to use.
  • Of course you'll need a Comment Action above it to provide the choices.
  • Then use the Variable to control the logic of the macro.
  • The end-user can then easily change the option as desired.

Of course, you are free to maintain your posts and macros in the way you best see fit.