From 3282a56056fb2fc7c8940d525947b723f0216abe Mon Sep 17 00:00:00 2001 From: EdTheDev Date: Thu, 28 Oct 2021 21:57:12 -0500 Subject: [PATCH] Stay awake for a bit. --- win/stay_awake.ps1 | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/win/stay_awake.ps1 b/win/stay_awake.ps1 index 7d40cfe..aba956a 100644 --- a/win/stay_awake.ps1 +++ b/win/stay_awake.ps1 @@ -1,9 +1,10 @@ $wsh = New-Object -ComObject WScript.Shell $minutes = 15 do{ - $minutes-=1; + "Staying awake for $minutes minutes" + $minutes-=1; # Send Shift+F15 $wsh.SendKeys('+{F15}') Start-Sleep -seconds 59 -}until($minutes < 0) -# Thank you to http://www.zhornsoftware.co.uk/caffeine/ \ No newline at end of file +}until($minutes -lt 0) +# Thank you to http://www.zhornsoftware.co.uk/caffeine/ -- 2.47.3