Search found 237 matches

by mqh777
Thu Oct 09, 2014 12:51 pm
Forum: PowerShell GUIs
Topic: how to lock windows within studio?
Replies: 2
Views: 1276

how to lock windows within studio?

When I'm in the PowerShell Studio in design mode on the right hand side of the screen are my properties. When I switch to the Script mode I see my functions and snippets on the right side of the screen. I've pulled these side windows out towards the center of the screen to make them bigger but when ...
by mqh777
Wed Oct 08, 2014 7:52 am
Forum: PowerShell GUIs
Topic: can't download sample program
Replies: 12
Views: 6827

Re: can't download sample program

You wrote:

1. place timer on form.
2. set time values
3. create event for the tick by clicking on the time. - Not sure what you mean by this?
4. place code to update screen value with time value on each tick.
by mqh777
Tue Oct 07, 2014 1:27 pm
Forum: PowerShell GUIs
Topic: can't download sample program
Replies: 12
Views: 6827

Re: can't download sample program

I have 2 programs. Program One: has no dialogs. It checks to see if your machine has been up for 7 days. If you have not rebooted in 7 days or more Program Two gets called. Program One will get launched either via Scheduled Task or at Logon Via Group Policies. Program Two: This has 2 buttons. Delay ...
by mqh777
Tue Oct 07, 2014 12:31 pm
Forum: PowerShell GUIs
Topic: can't download sample program
Replies: 12
Views: 6827

Re: can't download sample program

Question, why can't you put a start-sleep in a form? It seems to work fine. In fact within another form I have this line of code: if ($GetBootValue1 = '1') { remove-itemproperty -path HKLM:\Software\MGH -name OneHour | start-sleep -s 3600 | shutdown.exe /r /f /t 180 /c "Your computer will be reboote...
by mqh777
Tue Oct 07, 2014 10:44 am
Forum: PowerShell GUIs
Topic: can't download sample program
Replies: 12
Views: 6827

Re: can't download sample program

Thank you. That time control script works as expected but when I try to merge that logic with my existing code it does not work. What is interesting is the following code complies and runs without error, but I never see my countdown. Any hints of why/where my code is wrong? $FormEvent_Load = { #TODO...
by mqh777
Tue Oct 07, 2014 9:05 am
Forum: PowerShell GUIs
Topic: TopMost Setting?
Replies: 4
Views: 1670

Re: TopMost Setting?

thanks
by mqh777
Tue Oct 07, 2014 8:52 am
Forum: PowerShell GUIs
Topic: can't download sample program
Replies: 12
Views: 6827

can't download sample program

From this site I'm trying to download the timer example script. I have Deleted all Cookies from with Chrome and IE 11. Yet from both browsers when I try to access the Downloads page I get this error. Disallowed Key Characters. If you are seeing this message, please delete the cookie "__utmt_~1" and ...
by mqh777
Tue Oct 07, 2014 8:38 am
Forum: PowerShell GUIs
Topic: TopMost Setting?
Replies: 4
Views: 1670

Re: TopMost Setting?

Yes but I can't emulate all of the windows users will have. Example: we run a ton of Citrix based apps, most of which I don't have published to me so I can't test against them. I just want to make sure this form when run will always be on top no matter what apps are currently running.
by mqh777
Tue Oct 07, 2014 6:56 am
Forum: PowerShell GUIs
Topic: TopMost Setting?
Replies: 4
Views: 1670

TopMost Setting?

When my form launches I need it to "always be on top" of all other Windows apps. I see the TopMost setting under Design, will that do the trick or is there something else I need to set to make this happen?
by mqh777
Tue Oct 07, 2014 6:54 am
Forum: PowerShell GUIs
Topic: What if no one clicks a button?
Replies: 1
Views: 1188

What if no one clicks a button?

I have a form that has 2 buttons. Button 1, "delay reboot for 1 hour", button 2, "reboot now". I disable the button in the upper right corner so they can't close it. But, what if they never click a button? If that happens I'd like to reboot. So if they don't press a button for 5 min then execute a s...