Search found 27 matches

by mattys
Wed Jun 10, 2020 3:24 am
Forum: PowerShell GUIs
Topic: Timer Event Help
Replies: 22
Views: 2468

Re: Timer Event Help

OK based on what you are saying, I am using time to tell when they need to be executed. I provided a small example digitalClocktest.psf
by mattys
Tue Jun 09, 2020 7:58 pm
Forum: PowerShell GUIs
Topic: Timer Event Help
Replies: 22
Views: 2468

Re: Timer Event Help

Yes, Jvierra. You are right, I'm sitting in the timer tick. :|
In this every 2 mins the label will flash...
digitalClocktest.psf
(23.92 KiB) Downloaded 23 times
by mattys
Tue Jun 09, 2020 7:29 pm
Forum: PowerShell GUIs
Topic: Timer Event Help
Replies: 22
Views: 2468

Re: Timer Event Help

When I was checking with the IF statement I think I was checking a datetime against a string. So I made them both strings and now it sees the trigger. My only hiccup now is sometimes the label flash portion will freeze/stall?...Which I don't understand fully because I stop the timer and the labels f...
by mattys
Tue Jun 09, 2020 2:53 pm
Forum: PowerShell GUIs
Topic: Timer Event Help
Replies: 22
Views: 2468

Re: Timer Event Help

Thank you for your help again, Jvierra. You are a great asset to the board. Thank you!!
by mattys
Mon Jun 08, 2020 5:18 pm
Forum: PowerShell GUIs
Topic: Timer Event Help
Replies: 22
Views: 2468

Re: Timer Event Help

I apologize, Im having a tough time with this.
I'm looking for the trigger to happen at specific times. 7, 7:30, 8, 8:30..
Will the clock modulus work like this?

Also, the code of the button is in the timer.. it just shows the time

Thank you
by mattys
Mon Jun 08, 2020 4:05 pm
Forum: PowerShell GUIs
Topic: Timer Event Help
Replies: 22
Views: 2468

Re: Timer Event Help

That is why im confused how it is not getting triggered. I do have the button in the timer1_tick event. $timer1_Tick = { $buttonclock.Enabled = $true $NyTime = [System.TimeZoneInfo]::ConvertTimeBySystemTimeZoneId((Get-Date), 'US Eastern Standard Time') $NexthalfHour = $NyTime::Today.AddHours([Math]:...
by mattys
Sun Jun 07, 2020 12:03 pm
Forum: PowerShell GUIs
Topic: Timer Event Help
Replies: 22
Views: 2468

Timer Event Help

I'm attempting to create an app which displays a digital time clock. - I'm using a timer named timer1. No problem.. At 30 min and top of the hour I want the clock to stop/pause or even turn off..and Display a label. This is an animated gif on my project: https://ibb.co/MPxxxhg Ive been struggling wi...
by mattys
Thu Jun 04, 2020 11:44 pm
Forum: PowerShell GUIs
Topic: Use Timer to toggle colors
Replies: 1
Views: 265

Use Timer to toggle colors

How would I go abouts getting a Form or label to toggle between 2 colors? Im using a timer as a clock in the app already. Im trying to add another timer to toggle 2 colors at a given interval for a few seconds.. Is this the right way to go about it? I appreciate any ideas where to start. Thanks in a...
by mattys
Fri Apr 17, 2020 10:24 am
Forum: PowerShell GUIs
Topic: Different return in GUI
Replies: 1
Views: 279

Different return in GUI

Any idea why I get a different return when placing into a gui form? I ultimately am wanting to display the time only, in Eastern Time. ex. 03:12:45 PM This works in ISE, but in my form I get a different result? ex. 04/17/2020 15:12:45 Confused on why. $timerClock_Tick = { #Temporarily stop the timer...
by mattys
Sun Apr 12, 2020 5:52 pm
Forum: PowerShell GUIs
Topic: Play a sound when a certain time triggers
Replies: 2
Views: 314

Re: Play a sound when a certain time triggers

Perfect!
Thanks for reply!