Screensaver disable

From UVOO Tech Wiki
Revision as of 19:35, 4 January 2022 by Busk (talk | contribs) (Created page with "Windows ``` $WShell = New-Object -Com "Wscript.Shell" while (1) {$WShell.SendKeys("{SCROLLLOCK}"); sleep 60} ``` or ``` $myShell = New-Object -com "Wscript.Shell" for ($i...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Windows

$WShell = New-Object -Com "Wscript.Shell"
while (1) {$WShell.SendKeys("{SCROLLLOCK}"); sleep 60}

or

$myShell = New-Object -com "Wscript.Shell"

for ($i = 0; $i -lt $minutes; $i++) {
Start-Sleep -Seconds 30
$myShell.sendkeys("{F13}")
}