Isak
1
Hi,
im working on making a macro that would quit Outlook after being deactivated a certain amount of time, 3 min. But would cancel the timer if activated.
I was thinking I could make a counter macro to this one that would cancel the macro with a timer, the trigger being if Outlook was activated again.
But i cant find the cancel specific macro. Anyone with a solution for me?
Thanks!
![](https://forum.keyboardmaestro.com/uploads/default/original/2X/8/8ff40d2b303fcc077e0a266f7ce5bdcd08f42515.png)
There isn't a specific action to do this, but let's talk about your specific goal. Here's one idea:
Three macros.
This first macro will close Outlook after 3 minutes. It also deactivates itself. This macro starts out deactivated.
![](https://forum.keyboardmaestro.com/uploads/default/original/2X/d/dbe9051175845f7ba933c4d784e0e56120318386.png)
This second macro triggers when Outlook is deactivated. It enables the first macro.
![](https://forum.keyboardmaestro.com/uploads/default/original/2X/a/a79f3892efe52a74ef76c63cd50e24f594e8ffd6.png)
This third macro disables the first macro whenever Outlook is activated or terminated.
![](https://forum.keyboardmaestro.com/uploads/default/original/2X/6/6da180e2ad49b50c9be1e2551d0fb7ab56e3a1eb.png)
You might have to think about this a few moments. If you need help, let me know.