Create a small pop up window when KM is running any macro

How can I create a small pop up window when KM is running any macro? Similar to say Micro Snitch app. I commonly close my menu bar and thus am unable to see that the KM icon is rotating and need a similar confirmation/sign somewhere on the outskirts of the screen that KM is running a macro.

It should work with any macro, rather than a particular one.

The KM Debugger is how I do it. When any macro is running, the debugger shows it. This is so helpful, it's one of the few permanent macros I've created with a hotkey and I placed it into the Global Macro Group. It may even be the macro that I trigger the most.

1 Like

Any, or every, macro? And what granularity -- do you want a popup for a macro that's run and done in a 1/10th of a second, or just the ones that take an appreciable amount time?

You could, for example, have a macro that ran every second and checked if %ExecutingInstances% contained , -- if so there's another macro running so pop a "Display Progress" or similar. But that could get very old, very quickly...

  • I'd say any macro (I can switch the pop-up window on and off).
  • I care to catch the macros which are possibly stuck and need to be debugged and continue to run in the background for longer then say a minute.

I love hearing little bits of information like this. That is a handyone that I wasn't aware of and even better to see what is stuck or running. I still need to figure out how to do things about Engine Error logs.

Then the easiest way would be to collect %ExecutingInstances% once every minute and compare that to the previous list -- any instance in both has been running for at least one minute.

Shamelessly stealing @Airy's idea of using the Debugger as a way to both notify and to open any stuck macro in the Editor, this should get you started:

Is a macro stuck?.kmmacros (5.4 KB)

Image

1 Like

@Nige_S, this is perfect, exactly what I was looking for.
Thank you for putting it together so quickly!