Audio reminder when spells are cooldowned.

Ask gaming related questions (AHK v1.1 and older)
Ragnaredd
Posts: 1
Joined: 09 Oct 2019, 12:19

Audio reminder when spells are cooldowned.

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.

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
Thanks so much for the help guys!
Rohwedder
Posts: 7627
Joined: 04 Jun 2014, 08:33
Location: Germany

Re: Audio reminder when spells are cooldowned.

11 Oct 2019, 01:21

Hallo,
try this method:

Code: Select all

$F12::
IF TF12
	Return
Send {F12}
SetTimer, TF12, -40000
TF12 := True
Return
TF12:
SoundPlay, C:\Users\Dennis\Desktop\sounds\UEfemale.mp3
TF12 := False
Return

Return to “Gaming Help (v1)”

Who is online

Users browsing this forum: Rohwedder and 81 guests