Screensaver disable

From UVOO Tech Wiki
Jump to navigation Jump to search

Windows

while (1) {$WShell.SendKeys("{SCROLLLOCK}"); sleep 60}
$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}")
}