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?

Thanks

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

##Macro Library   @KM Macro Self-Reset Counter @Example


####DOWNLOAD:
<a class="attachment" href="/uploads/default/original/2X/f/f5242eb8e5bbba123f3b3e0546bc17342a5e4bcd.kmmacros">@KM Macro Self-Reset Counter @Example.kmmacros</a> (8.4 KB)
** Note: This Macro was uploaded in a DISABLED state. You must enable before it can be triggered.**


###ReleaseNotes

HOW TO USE:

* Change this Action to the total number of seconds you want for the timer.  
<img src="/uploads/default/original/2X/c/c64217378ed55e71428142e20892621a22d24eb9.png" width="243" height="23">

* 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.

---

<img src="/uploads/default/original/2X/1/134449c354f9042222df0b2e9332a6b877203402.png" width="546" height="1743">