Search found 6 matches

by stratagem
Fri Feb 12, 2016 10:43 am
Forum: PowerShell GUIs
Topic: Powershell Studio 2015 visual indicator update real time?
Replies: 11
Views: 5286

Re: Powershell Studio 2015 visual indicator update real time?

Thanks. I have so much to learn...

To get this to loop should it be placed at the top of the script or in form_load={?
by stratagem
Fri Feb 12, 2016 4:56 am
Forum: PowerShell GUIs
Topic: Powershell Studio 2015 visual indicator update real time?
Replies: 11
Views: 5286

Re: Powershell Studio 2015 visual indicator update real time?

Sorry, not trying to be vague. It's a small form that stop/starts about 15 different services spread over 3 different servers. The labels themselves are only there to show if the service is running. That's it. So something like this... If ($Service.Status -eq "Running") { $label1.Text = &q...
by stratagem
Thu Feb 11, 2016 9:22 am
Forum: PowerShell GUIs
Topic: Powershell Studio 2015 visual indicator update real time?
Replies: 11
Views: 5286

Re: Powershell Studio 2015 visual indicator update real time?

I'm using this method as feedback for the end users. Right now when I click start or stop it works but it doesn't provide any indication that it's finished. So the user has to trust that it is working and remember which services they have either started or stopped. Functions might not be what I need...
by stratagem
Thu Feb 11, 2016 8:50 am
Forum: PowerShell GUIs
Topic: Powershell Studio 2015 visual indicator update real time?
Replies: 11
Views: 5286

Re: Powershell Studio 2015 visual indicator update real time?

I'm having a hard time working this out. Would it be best to create this function, if it should be a function, in the form_load section or before that? And then have a function for each label call on the timer? Sorry, I'm still learning Powershell and most of my scripts have been one-liners. I still...
by stratagem
Wed Feb 10, 2016 9:06 am
Forum: PowerShell GUIs
Topic: Powershell Studio 2015 visual indicator update real time?
Replies: 11
Views: 5286

Re: Powershell Studio 2015 visual indicator update real time?

Thanks! I'll read more on timers.
by stratagem
Wed Feb 10, 2016 5:16 am
Forum: PowerShell GUIs
Topic: Powershell Studio 2015 visual indicator update real time?
Replies: 11
Views: 5286

Powershell Studio 2015 visual indicator update real time?

Sorry for the poor subject line. I'm not sure how to word it exactly. What I'd like to do is create some visual indicators for the users showing if a service is running or not. Maybe change a label box or picture box to red / green depending on the status? Is it possible to have this job running in ...