Hallo,
ich hab gerade ein kleines Problem mit einem Programm undzwar soll dieses eine txt einlesen ( in der txt befindet sich XX Ips ), dass Programm pingt die Ips an und wenn alle down sind, soll mein eigener PC runterfahren. Wenn aber noch ein paar online sind dann soll er weiter pingen solang bis alle IPs in der Liste off sind ... Ich hab vorgehabt alles via Guil Oberfläsche zu machen aber nun wär es doch geschickter ohne Oberfläsche...
Bis jetzt hab ich es nur mit Oberfläsche ( was aber auch nicht so ganz klappt )
[autoit]Opt("GuiOnEventMode", 1)
#include<guiconstants.au3>
#include<array.au3>
#region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 579, 170, 192, 124)
GUISetOnEvent(-3, "_exit")
$Button1 = GUICtrlCreateButton("Abbrechen", 416, 104, 113, 49)
$Button2 = GUICtrlCreateButton("GO", 416, 16, 113, 49)
GUICtrlSetOnEvent(-1, "_go")
$Edit1 = GUICtrlCreateEdit("", 24, 16, 361, 129)
GUICtrlSetData(-1, "")
GUISetState(@SW_SHOW)
#endregion ### END Koda GUI section ###
$iStart = 0
While Sleep(100)
$aIP = StringSplit(GUICtrlRead($Edit1), @LF)
While $iStart = 1
$iCounter=0
For $i = 1 To $aIP[0]
If Ping($aIP[$i], 250) = 0 Then $iCounter += 1
Sleep(100)
Next
if $iCounter=$aIP[0] then Exit Shutdown(1, "", "Shutdown") ;
Sleep(180000)
WEnd
WEnd
[/autoit][autoit][/autoit][autoit]Func _go()
$iStart = 1
EndFunc ;==>_go
Func _stop()
$iStart = 0
EndFunc ;==>_stop
Func _exit()
Exit
EndFunc ;==>_exit
Wär Super wenn mir jemand damit helfen könnte ...
lg
Eldas