MACRO: Run Current Macro
UPDATED v1.2.1 2016-08-10: Increased timeout
UPDATED v1.2: If you run this macro when the Keyboard Maestro Editor is not the active application, you will be asked if you want to continue or not. Also, the TriggerValue prompt now includes the name of the macro, Thanks to @JMichaelTX for his suggestions and code examples,.
Run Current Macro v1.2.1.kmmacros (44.8 KB)
This is quickly becoming one of my favorite macros, and I just wrote it this morning!
- Assign a hotkey to this macro.
- Then when you're editing any macro, just tap the hotkey and the macro you're editing will run.
- If your macro requires a %TriggerValue% parameter, then instead of tapping the hotkey, hold it down for half a second.
- A prompt will pop up, asking you for the TriggerValue.
- Click OK, and the macro is run with the TriggerValue.
###But wait, there's more!
- The next time you tap the hotkey to run that macro, it remembers the TriggerValue you used before, and uses it again.
- In fact, it can remember a different trigger value for each macro!
- Want to change the TriggerValue or get rid of it altogether? Hold down the hotkey, and change the value in the prompt, or clear it out entirely.
- All trigger values are stored as normal KM variables, so you can also clear them out via Preferences->Variables, if you want.
Why has this become my favorite macro?
I know it's really easy to assign a hotkey to whatever macro you're working on. But for some reason, the fact that this key is right there for any macro makes running the macro you're editing a snap.
And the added bonus of being able to supply a TriggerValue completes the joy of using it. Really!