Update KeyPresser.ps1

This commit is contained in:
DeveloperDurp
2021-06-23 11:44:34 -05:00
committed by GitHub
parent 7db8c8ce6e
commit 90a6263b30

View File

@@ -1,6 +1,6 @@
#region Header
$Version = "1.0.3"
$Version = "1.0.4"
#Dependencies
[Reflection.Assembly]::LoadWithPartialName("System.Windows.Forms") | Out-Null
@@ -43,12 +43,12 @@
$client = $sync["clienttextbox"].text
while($sync["x"] -eq 1){
if ($client -ne ""){
$ActiveHandle = [UserWindows]::GetForegroundWindow()
$Process = Get-Process | ? {$_.MainWindowHandle -eq $activeHandle} | Select-Object -ExpandProperty ProcessName
Write-Output $Process
Write-output $delay
}else{$process = $client}
Foreach ($key in $keys){
if ($sync["x"] -eq 1 -and $Process -eq $client){