Updated so it will stop as soon as you hit stop

This commit is contained in:
Kevin Lukritz
2020-11-09 10:38:54 -06:00
parent 759fbc565a
commit 9b254abdce

View File

@@ -38,8 +38,10 @@
while($sync["x"] -eq 1){
$keys = $keys -split ","
Foreach ($key in $keys){
Start-Sleep -Milliseconds 500
[System.Windows.Forms.SendKeys]::SendWait("{$key}")
if ($sync["x"] -eq 1){
Start-Sleep -Milliseconds 500
[System.Windows.Forms.SendKeys]::SendWait("{$key}")
}
}
}
}).AddArgument($Keys)