Window flashes when using "kmtrigger://macro=" to tigger macro

Hello,

As the title says.
The behavior is the same when I use the action in KM.
image

Looks like the window became inactive (switching to KM engine?) for the macro and then switched back active after the macro? With AppleScript trigger, it runs in the background, so no active window switch?

with "kmtrigger://macro=" trigger

with AppleScript trigger:

Yes, because the system activates Keyboard Maestro Engine to process the URL (just like it activates your web browser when you click an http: link). Keyboard Maestro Engine immediately deactivates itself.

Is it possible to make it run in the background to avoid the window flash?
This window flash behavior is not pleasant to the eye when I need to trigger macros frequently in a period of time. I turned to AppleScript trigger because of the window flash with "kmtrigger". (It's fine if nothing can be done with it since I've already been using the alternative triggers.)

The Keyboard Maestro Engine does run in the background, but it still has to be able to provide a UI for various things.

To avoid it you will need to use an alternative trigger or an alternative way of linking the URL (eg use a Remote trigger with a shell curl command).

I trigger it from local network. I switched to AS triggers.
Thanks!

1 Like