Difference between revisions of "Screensaver disable"
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...") |
|||
Line 1: | Line 1: | ||
Windows | Windows | ||
+ | ``` | ||
+ | while (1) {$WShell.SendKeys("{SCROLLLOCK}"); sleep 60} | ||
+ | ``` | ||
+ | |||
``` | ``` | ||
$WShell = New-Object -Com "Wscript.Shell" | $WShell = New-Object -Com "Wscript.Shell" |
Latest revision as of 07:42, 24 April 2022
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}") }