function keepalive(){ $wsh = New-Object -ComObject wscript.shell $i = 0 $interval = 200 while($true){ Write-Host "`t$i" -NoNewline $i = $i + $interval sleep -Seconds $interval $wsh.SendKeys("{F14}") } }
No comments:
Post a Comment