I have a macro, which hides an app (here Slack) after 60 seconds of deactivation:
This works, but has one problem: the timer is not reset when I activate the app. So, if I deactivate the app, activate it after 30 seconds. deactivate it, it will still de-activate after 30 more seconds.
How can I make this macro to be reset when I activate the app?
DO I have to write a macro which cancels this macro when I activate the app? Is there a more elegant solution, As I am maintaining several of these auto-hide scripts to keep my desktop clean?