Das ist auch alles ganz schick. Aber er sendet den enter Befehl nicht.
Hier nochmal der Code.
Quote:
$IP = InputBox('Ping','Welche Ip-Adresse soll angepingt werden?')
If $IP = '' Then
ProcessClose('Ping')
ElseIf $IP = $IP Then
Run('cmd')
sleep(1000)
; WinWaitActive('C:\Windows\system32\cmd.exe')
WinActivate('C:\Windows\system32\cmd.exe')
Send('ping ' & $IP )
WinActivate('C:\Windows\system32\cmd.exe')
sleep(1000)
send('{Enter}')
Sleep(4000)
WinKill ('C:\Windows\system32\cmd.exe')
EndIf