GUI Timer Request

Ask gaming related questions (AHK v1.1 and older)
Blazuno
Posts: 2
Joined: 30 Jul 2021, 17:21

GUI Timer Request

Post by Blazuno » 30 Jul 2021, 17:27

I am new to AHK. I am looking for a script that'll help me identify if an ability is on cooldown for this game. Basically if I press the key to activate the ability, a small GUI will set the status of it to "not ready" until the ability is off cooldown again in which case the GUI will say ready. I looked into GUI timers but never found what I was looking for. If I could get some help that'd be appreciated, thanks!

User avatar
mikeyww
Posts: 26877
Joined: 09 Sep 2014, 18:38

Re: GUI Timer Request

Post by mikeyww » 30 Jul 2021, 18:30

My suggestion is to describe what you need to happen with windows, keyboard, or mouse, as if the reader knows nothing about your game.

Blazuno
Posts: 2
Joined: 30 Jul 2021, 17:21

Re: GUI Timer Request

Post by Blazuno » 30 Jul 2021, 19:07

This is an image example what I mean. If the specified key is pressed (in my case 6) then it tells me that it isn't ready until the cooldown is finished (in this case 38 seconds). Hope this helps!
Attachments
Screenshot_9.png
Screenshot_9.png (80.97 KiB) Viewed 516 times
image.png
image.png (17.08 KiB) Viewed 516 times

User avatar
mikeyww
Posts: 26877
Joined: 09 Sep 2014, 18:38

Re: GUI Timer Request

Post by mikeyww » 30 Jul 2021, 20:04

If you are looking for a certain color to appear on the screen, then you could have a look at PixelGetColor. If you need a timer or a delay, it might be with SetTimer or Sleep.

Post Reply

Return to “Gaming Help (v1)”