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.
Creation of a Countdown Timer Topic is solved
-
- Posts: 348
- Joined: 27 Apr 2019, 17:38
Creation of a Countdown Timer
- Attachments
-
- Untitled.png (14.06 KiB) Viewed 215 times
Re: Creation of a Countdown Timer Topic is solved
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.
-
- Posts: 348
- Joined: 27 Apr 2019, 17:38
Re: Creation of a Countdown Timer
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.