Last active
January 19, 2021 22:10
-
-
Save dominique-mueller/56c5bdf39270a965b33c363acc4591c6 to your computer and use it in GitHub Desktop.
Are you online in Slack? With this little scripts, always. How neat.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Clear-Host | |
Echo "Keep alive with scroll lock..." | |
$WShell = New-Object -com "Wscript.Shell" | |
while ($true) | |
{ | |
$WShell.sendkeys("{SCROLLLOCK}") | |
Start-Sleep -Milliseconds 100 | |
$WShell.sendkeys("{SCROLLLOCK}") | |
# sleep 29 Minutes | |
Start-Sleep -Seconds 1740 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment