One mroe change

This commit is contained in:
Kevin Lukritz
2020-11-09 12:58:28 -06:00
parent cddc9b21e0
commit 8b70df5178

View File

@@ -47,14 +47,14 @@
while($sync["x"] -eq 1){
Foreach ($key in $keys){
$ActiveHandle = [UserWindows]::GetForegroundWindow()
$Process = Get-Process | ? {$_.MainWindowHandle -eq $activeHandle} | Select-Object -ExpandProperty ProcessName
Write-Output $Process
Foreach ($key in $keys){
if ($sync["x"] -eq 1 -and $Process -eq "sro_client"){
Start-Sleep -Milliseconds 50
#Start-Sleep -Milliseconds 50
[System.Windows.Forms.SendKeys]::SendWait("{$key}")
}
}