Hallo,
undzwar such ich jemanden der mir ein Programm schreibt wo jede 2-3 min die eingegebenen IPs prüft, wenn alle nicht erreichbar sind, soll der einige PC dann runterfahren..
Also man gibt XXX Ips ein und dass Programm prüft alle Ips ob die via Ping erreichbar sind, wenn ja dann soll er in 2-3 min weiter prüfen wenn alle off, dann soll der PC runterfahren.
Biete 10 PSC oder 10 in BAR ( überweißung etc ) oder wenn einer so nett ist für free ...
So solln ca aussehen :
// danke Monkey ! //
[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
*Edd*
Leider klappt der Script nicht ganz, wenn ich Ips eingebe die "aktiv" sind kommt trotzdem shutdown ... ( sollte aber weiter prüfen bis offline )
Wär gut wenn man vllt noch ein Fenster macht wo die offline / online Ips dann angezeigt werden
Vielen DANK
Eldas