MACRO: Forum Username Tool, v3.0

Forum Username Tool


PURPOSE

This shortcut provides nine options for a selected Keyboard Maestro Forum Username. (For the following explanation, it is assumed that my username, _jims, was first selected.)



1 - Populate Clipboard with Rich Link (@_jims) to _jims’s Forum Summary Page (for KM Comments)

After running this option, the pasted clipboard will vary based on the target…

If the target accepts text-only (e.g., a text editor):
[@_jims](Profile - _jims - Keyboard Maestro Discourse)

If the target accepts rich text (e.g., a KM macro Comment):
@_jims

This option was the original motivation to create this macro. When using ideas or code from others, I like to include a link to that user in my macro comments (header and/or body). For an example, see my link to @ComplePoint in the below ACKNOWLEDGEMENTS.

2 - Populate Clipboard with @_jims (for KM Forum Posts)

In the KM Forum editor, @username will be automatically be interpreted as a link to the selected user.

Admittedly, this option is of limited value because one can more easily use the native feature of the forum editor:

  1. Type @ and a pop-up list will appear that includes users that have already contributed to the forum thread.

  2. Type @ followed by a character or two for a user and a popup list will appear that includes users that match. For example, if @_j is typed, the forum editor will display a pop-up list that includes _jims and any other usernames that start with _j.

3 - Open _jims’s Forum Summary Page

Use this to learn more about the selected user.

4 - Show Messages with @_jims

Use this display personal messages with the specified user.

5 - Show Macros Shared by @_jims

6 - Show Tips & Tutorials Shared by @_jims

7 - Show Questions & Suggestions by @_jims

8 - Show All Forum Posts by @_jims

9 - Show All Forum Posts by @_jims

Use these options to display forum posts by the specified user.

SETTINGS

The variable local_Username includes 200+ users that I quickly gathered by scanning the Keyboard Maestro Forum. It is far from a complete list but I tried to include all users that have been recently active. You can specify a username ad hoc, or modify the text variable. If there is a user that you would like added, please comment in the forum post and I will add that user if/when I update the macro.

BYPASSING THE USERNAME PROMPT OF CONFIGURED USERS

If this macro is triggered by another macro (using the Execute Macro action) and the With Parameter is not null, then the username prompt (of configured users) will be bypassed. In these cases, the calling macro would normally supply the forum username using the With Parameter. If slash (/) is specified, this macro will skip the configured username list and prompt for the username.

ACKNOWLEDGEMENTS

@ComplexPoint has kindly permitted use a JXA script from Copy Markdown as Link. The context sensitivity, when pasting from the Clipboard (Option 1 above), is thanks to this script.

TESTED WITH

• Keyboard Maestro v10.1.1
• Monterey, v12.4/MacBookPro16,1
• Mojave 10.14.16/Macmini6,2
• High Sierra 10.13.6/iMac11,1445

VERSION HISTORY

1.0 - Initial version

1.1 - Bug fix: Corrected the If action to properly search for: / DISPLAY DIALOG TO SPECIFY AN UNLISTED USER

1.2
a) Added a few username and removed duplicates.
b) Updated the information in TESTED WITH.

2.0
a) Added options 4, 6, 7, and 8.
b) Changed first Prompt With List to Automatic Width.
c) Added several more usernames (now 150+).

3.0
a) Skips the Prompt With List (of configured usernames) if a username is supplied via the TriggerValue.
b) Added a ninth option: 9 - Search Forum for @SelectedUser.
c) Added several additional usernames (now 200+).
d) Updated the information in TESTED WITH.


DOWNLOAD Macro File:
Forum Username Tool.kmmacros (49 KB)
Note: This macro was uploaded in a DISABLED state. It must be ENABLED before it can be run. If it does not trigger, the macro group might also need to be ENABLED.

Macro-image

3 Likes

Thanks @_jims for the useful macro :+1:

I've updated the OP with Version 3.0 of Forum Username Tool:

  • Skips the Prompt With List (of configured usernames) if a username is supplied via the TriggerValue.
  • Added a ninth option: 9 - Search Forum for @SelectedUser.
  • Added several additional usernames (now 200+).
  • Updated the information in TESTED WITH.