Skip to content

Instantly share code, notes, and snippets.

View tan14142's full-sized avatar

Tuan Anh Nguyen tan14142

View GitHub Profile
Clear-Host
Write-Output "Keep-alive with Scroll Lock..."
$WShell = New-Object -com "Wscript.Shell"
while ($true)
{
$WShell.sendkeys("{SCROLLLOCK}")
Start-Sleep -Milliseconds 100
$WShell.sendkeys("{SCROLLLOCK}")