@ Misterspeed: Danke, genau in die Richtung wollte ich gehen, inifile hatte ich auch eingeplant - nur war das halt sehr nooblike:
[autoit]$config = (@ScriptDir & "\config.ini")
$ProcessToCheck = IniRead($config, "Configuration", "ProcessToCheck", "NichtGefunden")
$AppToInstall = IniRead($config, "Configuration", "AppToInstall", "NichtGefunden")
Wie müsste jetzt die Case Schleife aussehen, damit auch da schon auf
[autoit]$list[$i][0],$list[$i][0]
[/autoit]basis abgefragt wird?
[autoit]Global $abfrage = 0
While 1
$list = ProcessList()
For $i = 1 To $list[0][0]
Switch $list[$i][0]
Case $list[$i][0]
Sleep(1000)
$Msgbox = MsgBox(8192+65,"Installer","Please close " & $list[$i][0] & " to install an update or new version of " & $AppToInstall )
If $Msgbox = 2 Then
Exit(1)
Endif
$abfrage = $abfrage + 1
EndSwitch
Next
Sleep(1000)
WEnd
Ist es wirklich soooo einfach? ![]()