ich wieder.
ich habe zwei skripte die dauernt in einer schleife abfragen ob das andere noch läuft. falls nicht wird das entsprechende neu gestartet.
[autoit]While 1
Sleep (200)
If Not ProcessExists ("Gandalf.exe") Then
Run (@ScriptDir & "\Gandalf.exe")
EndIf
WEnd
und
If Not ProcessExists ("Gandalf1234.exe") Then
Run (@ScriptDir & "\Gandalf1234.exe")
EndIf
$iniread = IniRead ("Configuration.ini", "Configuration", "Firststart?", 0)
#NoTrayIcon
If $iniread <> 1 Then
IniWrite ("Configuration.ini", "Configuration", "Firststart?", 1)
;GUI informationen zu Anfang
#include <GUIConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("BM Sicherheit", 435, 159, 193, 125)
GUISetBkColor(0x800000)
$Label1 = GUICtrlCreateLabel("HAllo", 16, 8, 341, 16)
$Label2 = GUICtrlCreateLabel("HAllo", 8, 32, 419, 17)
$Label3 = GUICtrlCreateLabel("HAllo", 8, 88, 419, 17)
$Label4 = GUICtrlCreateLabel("HAllo", 8, 136, 380, 17)
$Button1 = GUICtrlCreateButton("OK (Programm starten)", 8, 104, 379, 25)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
GUISetState(@SW_HIDE, $Form1)
If Not ProcessExists ("Gandalf1234.exe") Then
Run (@ScriptDir & "\Gandalf1234.exe")
Exit
EndIf
EndSwitch
WEnd
EndIf
[/autoit]bei liegen in einem ordner und sind auch beide komiliert.
ich weiß leider nicht woran es liegen könnte.