"A Time" Trigger Capture Help Needed

Hi @Joel

After some poking around in this forum I was able to find

I used your question and the post above to help me learn how this function works. I am still learning a LOT about KM and its abilities so I am sure there are others would will have more insights into other ways this could be accomplished.

Also, I am also not certain I understand what you are trying to accomplish. My hope is that this post helps gives you more ideas on how you can achieve your goals.

My macro defines a global variable - MacroTriggerTimeEpoch which stores the TRIGGERTIME() value.

I added a pause for 9 seconds for grins.

I then call the other macro as shown in the post I referenced above.

I then use the global variable floatUnixTime and the TRIGGERTIME() function to calculate the time in seconds since the macro was started and the action is run.

This is then displayed in a popup window.

floatUnixTime SUBMACRO

ELAPSED TIME

Function Info

function:TRIGGERTIME [Keyboard Maestro Wiki]
unixtime [Keyboard Maestro Wiki]