Restart macro with same key

Hi guys,

Need help with this macro, when I press shift P, I would like the macro to pause for 200 seconds, after this, play a sound.
However, if I press shift P again while the pause is going on, I would like the macro to start over, in other words for the pause to begin again from the beginning.

Does anyone know?


See if this macro will work for you, give you some ideas:

###MACRO:   @KM Macro Self-Reset Counter @Example

~~~ VER: 1.0    2017-05-25 ~~~

@KM Macro Self-Reset Counter @Example.kmmacros (8.4 KB)
** Note: This Macro was uploaded in a DISABLED state. You must enable before it can be triggered.**



  • Change this Action to the total number of seconds you want for the timer.

  • First time you trigger the macro, it will start the delay timer

  • Second time you trigger macro (if the first is still running), it will reset the timer.