August
1
Powershell: Send keyboard input to the screen
Here is a very basic way to send keyboard inputs to the screen on a looped time interval:
while ($true) {
$minutes = 1
$myShell = New-Object -com “Wscript.Shell”
for ($i = 0; $i -lt $minutes; $i++) {
Start-Sleep -Seconds 30
$myShell.sendkeys(” “)
}
}