#include <ButtonConstants.au3>
#include <ComboConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <TabConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Ausführen", 386, 316, 198, 121)
$Label1 = GUICtrlCreateLabel("Ausführen", 120, 0, 136, 42)
GUICtrlSetFont(-1, 22, 800, 6, "Palatino Linotype")
$Tab1 = GUICtrlCreateTab(8, 48, 369, 257)
GUICtrlSetResizing(-1, $GUI_DOCKWIDTH+$GUI_DOCKHEIGHT)
$Ausfuehren = GUICtrlCreateTabItem("Ausführen")
$ComboBox = GUICtrlCreateCombo("", 32, 104, 321, 25)
GUICtrlSetBkColor(-1, 0xC0C0C0)
$Start = GUICtrlCreateButton("Ausführen", 24, 160, 161, 105, $WS_GROUP)
GUICtrlSetFont(-1, 16, 800, 0, "Palatino Linotype")
$Beenden = GUICtrlCreateButton("Schließen", 200, 160, 161, 105, $WS_GROUP)
GUICtrlSetFont(-1, 16, 800, 0, "Palatino Linotype")
$Einstellungen = GUICtrlCreateTabItem("Einstellungen")
$Label2 = GUICtrlCreateLabel("Name", 40, 72, 58, 30)
GUICtrlSetFont(-1, 14, 800, 4, "Palatino Linotype")
$Label3 = GUICtrlCreateLabel("Dateipfad", 200, 72, 94, 30)
GUICtrlSetFont(-1, 14, 800, 4, "Palatino Linotype")
$Name1 = GUICtrlCreateInput(IniRead("settings.ini", "Sektion", "Name1",""), 32, 104, 81, 21)
GUICtrlSetBkColor(-1, 0xC0C0C0)
$Dateipfad1 = GUICtrlCreateInput(IniRead("settings.ini", "Sektion", "DateiPfad1",""), 136, 104, 217, 21)
GUICtrlSetBkColor(-1, 0xC0C0C0)
$Label4 = GUICtrlCreateLabel("1", 16, 104, 14, 30)
GUICtrlSetFont(-1, 14, 800, 4, "Palatino Linotype")
$Label5 = GUICtrlCreateLabel("2", 16, 128, 14, 30)
GUICtrlSetFont(-1, 14, 800, 4, "Palatino Linotype")
$Label6 = GUICtrlCreateLabel("3", 16, 152, 14, 30)
GUICtrlSetFont(-1, 14, 800, 4, "Palatino Linotype")
$Label7 = GUICtrlCreateLabel("4", 16, 176, 14, 30)
GUICtrlSetFont(-1, 14, 800, 4, "Palatino Linotype")
$Label8 = GUICtrlCreateLabel("5", 16, 200, 14, 30)
GUICtrlSetFont(-1, 14, 800, 4, "Palatino Linotype")
$Label9 = GUICtrlCreateLabel("6", 16, 224, 14, 30)
GUICtrlSetFont(-1, 14, 800, 4, "Palatino Linotype")
$Label10 = GUICtrlCreateLabel("7", 16, 248, 14, 30)
GUICtrlSetFont(-1, 14, 800, 4, "Palatino Linotype")
$Name2 = GUICtrlCreateInput(IniRead("settings.ini", "Sektion", "Name2",""), 32, 128, 81, 21)
GUICtrlSetBkColor(-1, 0xC0C0C0)
$Dateipfad2 = GUICtrlCreateInput(IniRead("settings.ini", "Sektion", "DateiPfad2",""), 136, 128, 217, 21)
GUICtrlSetBkColor(-1, 0xC0C0C0)
$Name3 = GUICtrlCreateInput(IniRead("settings.ini", "Sektion", "Name3",""), 32, 152, 81, 21)
GUICtrlSetBkColor(-1, 0xC0C0C0)
$Dateipfad3 = GUICtrlCreateInput(IniRead("settings.ini", "Sektion", "DateiPfad3",""), 136, 152, 217, 21)
GUICtrlSetBkColor(-1, 0xC0C0C0)
$Name4 = GUICtrlCreateInput(IniRead("settings.ini", "Sektion", "Name4",""), 32, 176, 81, 21)
GUICtrlSetBkColor(-1, 0xC0C0C0)
$Dateipfad4 = GUICtrlCreateInput(IniRead("settings.ini", "Sektion", "DateiPfad4",""), 136, 176, 217, 21)
GUICtrlSetBkColor(-1, 0xC0C0C0)
$Name5 = GUICtrlCreateInput(IniRead("settings.ini", "Sektion", "Name5",""), 32, 200, 81, 21)
GUICtrlSetBkColor(-1, 0xC0C0C0)
$Dateipfad5 = GUICtrlCreateInput(IniRead("settings.ini", "Sektion", "DateiPfad5",""), 136, 200, 217, 21)
GUICtrlSetBkColor(-1, 0xC0C0C0)
$Name6 = GUICtrlCreateInput(IniRead("settings.ini", "Sektion", "Name6",""), 32, 224, 81, 21)
GUICtrlSetBkColor(-1, 0xC0C0C0)
$Dateipfad6 = GUICtrlCreateInput(IniRead("settings.ini", "Sektion", "DateiPfad6",""), 136, 224, 217, 21)
GUICtrlSetBkColor(-1, 0xC0C0C0)
$Name7 = GUICtrlCreateInput(IniRead("settings.ini", "Sektion", "Name7",""), 32, 248, 81, 21)
GUICtrlSetBkColor(-1, 0xC0C0C0)
$Dateipfad7 = GUICtrlCreateInput(IniRead("settings.ini", "Sektion", "DateiPfad7",""), 136, 248, 217, 21)
GUICtrlSetBkColor(-1, 0xC0C0C0)
$Speichern = GUICtrlCreateButton("Einstellungen speichern", 72, 272, 241, 25, $WS_GROUP)
GUICtrlSetFont(-1, 14, 800, 0, "Palatino Linotype")
GUICtrlCreateTabItem("")
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
$Combo = GUICtrlRead($Name1) & "|" & GUICtrlRead($Name2) & "|" & GUICtrlRead($Name3) & "|" & GUICtrlRead($Name4) & "|" & GUICtrlRead($Name5) & "|" & GUICtrlRead($Name6) & "|" & GUICtrlRead($name7)
GUICtrlSetData($ComboBox,$Combo)
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Speichern
IniWrite("settings.ini", "Sektion", "Name1", GUICtrlRead($Name1))
IniWrite("settings.ini", "Sektion", "Name2", GUICtrlRead($Name2))
IniWrite("settings.ini", "Sektion", "Name3", GUICtrlRead($Name3))
IniWrite("settings.ini", "Sektion", "Name4", GUICtrlRead($Name4))
IniWrite("settings.ini", "Sektion", "Name5", GUICtrlRead($Name5))
IniWrite("settings.ini", "Sektion", "Name6", GUICtrlRead($Name6))
IniWrite("settings.ini", "Sektion", "Name7", GUICtrlRead($Name7))
IniWrite("settings.ini", "Sektion", "DateiPfad1", GUICtrlRead($Dateipfad1))
IniWrite("settings.ini", "Sektion", "DateiPfad2", GUICtrlRead($Dateipfad2))
IniWrite("settings.ini", "Sektion", "DateiPfad3", GUICtrlRead($Dateipfad3))
IniWrite("settings.ini", "Sektion", "DateiPfad4", GUICtrlRead($Dateipfad4))
IniWrite("settings.ini", "Sektion", "DateiPfad5", GUICtrlRead($Dateipfad5))
IniWrite("settings.ini", "Sektion", "DateiPfad6", GUICtrlRead($Dateipfad6))
IniWrite("settings.ini", "Sektion", "DateiPfad7", GUICtrlRead($Dateipfad7))
$Pfad = GUICreate("", 331, 66, 192, 124)
$Text = GUICtrlCreateLabel("Datepfad dieser Exe:", 8, 8, 117, 21)
GUICtrlSetFont(-1, 9, 800, 4, "Palatino Linotype")
$k = GUICtrlCreateButton("OK!", 56, 32, 217, 25, $WS_GROUP)
GUISetState(@SW_SHOW)
$ExePfad = GUICtrlCreateInput(IniRead("settings.ini", "Sektion", "DateiPfadExe",""), 128, 8, 193, 21)
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $k
$exe = GUICtrlRead($ExePfad)
IniWrite("settings.ini", "Sektion", "DateiPfadExe", GUICtrlRead($ExePfad))
sleep(300)
Run($Exe)
sleep(200)
Exit
EndSwitch
WEnd
Case $Start
$Combo1_1 = GUICtrlRead($ComboBox)
If $Combo1_1 = $Name1 Then
Run($Dateipfad1)
ElseIf $Combo1_1 = $Name2 Then
Run($Dateipfad2)
ElseIf $Combo1_1 = $Name3 Then
Run($Dateipfad3)
ElseIf $Combo1_1 = $Name4 Then
Run($Dateipfad4)
ElseIf $Combo1_1 = $Name5 Then
Run($Dateipfad5)
ElseIf $Combo1_1 = $Name6 Then
Run($Dateipfad6)
ElseIf $Combo1_1 = $Name7 Then
Run($Dateipfad7)
EndIf
Run($Combo1_1)
Case $Beenden
Exit
EndSwitch
WEnd
Also soweit funktioniert alles... bis ich meine datei in der combocox auswähle und sage das er sie starten soll... aber er startet nichts.,,