Creation of a Countdown Timer Topic is solved

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
Alexander2
Posts: 348
Joined: 27 Apr 2019, 17:38

Creation of a Countdown Timer

Post by Alexander2 » 27 Jul 2021, 09:40

I am trying to create a small window with two countdown timers. When the 1 key is pressed, the first timer should start/ resume counting down. When 2 is pressed, the other timer should start/ resume. When one timer is activated, the other should pause automatically. And when the key of an active timer is pressed, the timer should pause.
The two timers should have hours, minutes, and seconds.
There may be various ways to create such a timer. I need to know how to do that and what method is the best.
Attachments
Untitled.png
Untitled.png (14.06 KiB) Viewed 215 times

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

Re: Creation of a Countdown Timer  Topic is solved

Post by mikeyww » 27 Jul 2021, 10:08

I would adapt one of the existing countdown timers here on the forum. You can duplicate the timer routine with a second set of variables. You can then disable the other timer as needed.

Alexander2
Posts: 348
Joined: 27 Apr 2019, 17:38

Re: Creation of a Countdown Timer

Post by Alexander2 » 29 Jul 2021, 13:02

Thank you. I had not thought about creating separate variables for hours, minutes, and seconds in subroutines instead of specifying the total number of seconds and then dividing them by 60 when displaying minutes and seconds.

Post Reply

Return to “Ask for Help (v1)”