Timer

Ask questions about creating Graphical User Interfaces (GUI) in PowerShell and using WinForms controls.
Forum rules
Do not post any licensing information in this forum.

Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
This topic is 2 years and 10 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
Locked
User avatar
SanSiets
Posts: 11
Last visit: Tue May 04, 2021 3:50 pm

Timer

Post by SanSiets »

Hi all,

On this site (https://www.sapien.com/blog/2011/08/09/ ... r-control/, to download click: https://www.sapien.com/downloads#Sample ... ontrol.zip)
there is a nice example for working with a timer. This is a script for a countdown in just seconds format.

What I need is not a timer but a stopwatch where the time format is HH:mm:ss.
I'm really new and not so experienced at Powershell so I hope that someone can modify this script or has a script that I need and is willing to share this with me.
jvierra
Posts: 15439
Last visit: Tue Nov 21, 2023 6:37 pm
Answers: 30
Has voted: 4 times
Been upvoted: 33 times

Re: Timer

Post by jvierra »

If you search there are a number of good examples of stopwatch and countdown timers.
jvierra
Posts: 15439
Last visit: Tue Nov 21, 2023 6:37 pm
Answers: 30
Has voted: 4 times
Been upvoted: 33 times

Re: Timer

Post by jvierra »

Here is a simple example of a countdown timer.
Attachments
Demo-Timer.psf
(30.5 KiB) Downloaded 72 times
This topic is 2 years and 10 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
Locked