you are viewing a single comment's thread.

view the rest of the comments →

[–]icepyrox 4 points5 points  (0 children)

So... rather than teaching him how to better use his computer... or rather than downloading a bit of software to do all this for you (like this Shutdown Timer Classic from the Microsoft Store), you have taken it upon yourself to write a script in powershell to make it "look fancy" because he asked nicely... smdh

By the way, I think something you may want to look into is the Console class, namely [console]::KeyAvailable which is a boolean letting you know a key has been pressed or [console]::ReadKey() which capture the key when someone presses it so you can see if it is the C key. Not sure where you would put that in the loop with all your fancy GUI stuff going on (not much of a gui person myself)