Home
Paste
Show Key
Listed
Keep Editing
param($count = 600) $host.ui.RawUI.WindowTitle = "Prevent Screensaver" $ps = New-Object -com "Wscript.Shell" for ($i = 0; $i -lt $count; $i++) { Write-Host "_" -NoNewline $ps.SendKeys("{SCROLLLOCK}") Start-Sleep -Seconds 1 $ps.SendKeys("{SCROLLLOCK}") Start-Sleep -Seconds 299 }
param($count = 600) $host.ui.RawUI.WindowTitle = "Prevent Screensaver" $ps = New-Object -com "Wscript.Shell" for ($i = 0; $i -lt $count; $i++) { Write-Host "_" -NoNewline $ps.SendKeys("{SCROLLLOCK}") Start-Sleep -Seconds 1 $ps.SendKeys("{SCROLLLOCK}") Start-Sleep -Seconds 299 }