Audio reminder when spells are cooldowned.
Posted: 09 Oct 2019, 12:28
Basicly it should just play a sound when the key is pressed. For example if I press F12 it should make a spell which has a cooldown of 40 seconds. That works so far. But the problem is if I press F8 which is another spell it doesnt "Send{F8}" since its still at the sleep of 40000 of the first script.
Last but not least I would like to deactivate the key aslong as the spellcooldown is not back. For example if I press F12 and 5 seconds later I press F12 by accident again the timer will start from the beginning or not even trigger since of the sleep.
I dont know much I would really appreciate help. Thats what I got currently.
Thanks so much for the help guys!
Last but not least I would like to deactivate the key aslong as the spellcooldown is not back. For example if I press F12 and 5 seconds later I press F12 by accident again the timer will start from the beginning or not even trigger since of the sleep.
I dont know much I would really appreciate help. Thats what I got currently.
Code: Select all
$F12::
Send {F12}
SetTimer, UE, 40000
sleep, 40000
SoundPlay, C:\Users\Dennis\Desktop\sounds\UEfemale.mp3
Return
$Delete::
Send {Del}
SetTimer, UE, 190000
sleep, 190000
SoundPlay, C:\Users\Dennis\Desktop\sounds\Magicshield.mp3
Return
$F8::
Send {F8}
SetTimer, UE, 8000
sleep, 8000
SoundPlay, C:\Users\Dennis\Desktop\sounds\energywave.mp3
Return