Play a sound when a certain time triggers

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 3 years and 11 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
mattys
Posts: 62
Last visit: Wed Dec 27, 2023 8:28 am
Has voted: 3 times

Play a sound when a certain time triggers

Post by mattys »

Is it possible to play a sound when a certain time trigger in an application form?

Would I use the timer? or just script it in?

Thanks for your thoughts and time.
jvierra
Posts: 15439
Last visit: Tue Nov 21, 2023 6:37 pm
Answers: 30
Has voted: 4 times
Been upvoted: 33 times

Re: Play a sound when a certain time triggers

Post by jvierra »

Use a timer. It is the fastest and easiest way. Drop control and use the tick to test for the time.
mattys
Posts: 62
Last visit: Wed Dec 27, 2023 8:28 am
Has voted: 3 times

Re: Play a sound when a certain time triggers

Post by mattys »

Perfect!
Thanks for reply!
This topic is 3 years and 11 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