Verwenden Sie eine ähnliche Methode wie ich, um Browser zu beenden
Local $aList = 0 Local $aProcesses = StringSplit('iexplore.exe|chrome.exe|firefox.exe|safari.exe|opera.exe|slimjet.exe', '|', $STR_NOCOUNT) ; Multiple processes For $i = 0 To UBound($aProcesses) - 1 $aList = ProcessList($aProcesses[$i]) If $aList[0][0] > 0 Then ; An array is returned and @error is NEVER set, so lets check the count. ;~ _ArrayDisplay($aList) Local $bIsProcessClosed = False ; Declare a variable to hold a boolean. For $j = 1 To $aList[0][0] $bIsProcessClosed = ProcessClose($aList[$j][1]) ; In AutoIt 0 or 1 can be considered boolean too. It's like a bit in SQL or in C, where 1 and 0 means true or false. If Not $bIsProcessClosed Then ConsoleWrite('CLOSE ERROR PID: ' & $aList[$j][1] & @CRLF) Next EndIf Next