Countdown Timer

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
hidio
Posts: 1
Joined: 09 Aug 2018, 06:08

Countdown Timer

09 Aug 2018, 06:12

Hi All,

ive been searching high and low for this script, and looked into this myself with no luck.

i need a countdown script with the following features;

- when i press shift f10, it starts a 3 minute 40 second countdown timer GUI
- if it reaches 0, it stays on 0
- if i press shift f10 before the counter is finished, it just restarts

background: i play a i game where call tibia which requires me to use "manashield" this lasts 3 minutes and 40 seconds. however, i keep forgetting to use the spell to add manashield, and then die. i need a countdown prompt which can be used continuously or once only depending on situation. always using shift f10 to start counter and restart and if the counter hits 0, pauses script.

any help will be muchly appreciated!
User avatar
Scr1pter
Posts: 1272
Joined: 06 Aug 2017, 08:21
Location: Germany

Re: Countdown Timer

10 Aug 2018, 05:40

Hi,
Not sure about the timer.
However, you could also use other ways.

For example:
- SoundPlay (play a specific sound file after 03:40 which reminds you)
- SplashScreen (open an image after 03:40 which reminds you)
- create a simple gui which pop ups after the 03:40

I mean do you really need a timer?

Here, you can check these example scripts.
Of course you have to change directories and files:

Code: Select all

+F10:: ; Shift+F10
Sleep, 220000 ; 220000 ms -> 220 s -> 03:40 min
SoundPlay, C:\Users\USER\Music\Z_Sounds\Reminder.wav
return

Code: Select all

+F10:: ; Shift+F10
SplashImage, Off ; Destroys SplashImage 
Sleep, 220000 ; 220000 ms -> 220 s -> 03:40 min
SplashImage, C:\Users\USER\Pictures\SpellOn.png, x1600 y0 b ; Activates SplashImage
return
And for using SplashImage and Guis, the game should not be fullscreen but Windowed.

Regards
Please use [code][/code] when posting code!
Keyboard: Logitech G PRO - Mouse: Logitech G502 LS - OS: Windows 10 Pro 64 Bit - AHK version: 1.1.33.09

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: filipemb, Rohwedder and 308 guests