If Macro Running Do Action?

'If' 'Macro' 'running' do 'action' - is this possible if so how?

If a macro is running then then do actions.....

1 Like

Keyboard Maestro does not support this because the concept does not really make sense - the macro that is executing is a copy of a macro that may no longer exist or may have changed, and may be running multiple instances, all of which confuse the whole concept of “is this macro running”.

You can set a variable when a macro starts running, and clear it when it finishes, and detect the macro is running that way, but if the macro aborts for any reason it is going to get confused.

Alternatively, you an perhaps make creative use of the Semaphore Lock action and very small times outs and the ActionResult token to detect the running state of the macro.