Difference between revisions of "Screensaver disable"

From UVOO Tech Wiki
Jump to navigation Jump to search
(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...")
(No difference)

Revision as of 19:35, 4 January 2022

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}")
}