Na gut,
da dir die GUI Probleme bereitet, hab ich (bzw. Koda LOL ) sie mal erstellt.
Den Anfangscode habe ich schon eingefügt - aber etwas mußt du schon noch selber tun.
Spoiler anzeigen
#include <GUIConstants.au3>
#Include <GuiList.au3>
#Region ### START Koda GUI section ### Form=
$Form2 = GUICreate("Datei Auswahl", 445, 326, 251, 121)
$List_Auswahl = GUICtrlCreateList("", 8, 8, 428, 213)
GUICtrlSetData(-1, "")
$Button_Auswahl = GUICtrlCreateButton("Dateiwahl", 360, 225, 75, 25, 0)
$Button_Start = GUICtrlCreateButton("Start", 360, 260, 75, 25, 0)
$Button_Cancel = GUICtrlCreateButton("&Cancel", 360, 295, 75, 25, 0)
$Group1 = GUICtrlCreateGroup("SUCH - String", 8, 220, 329, 48)
$Input_Suche = GUICtrlCreateInput("", 17, 236, 310, 21)
GUICtrlCreateGroup("", -99, -99, 1, 1)
$Group2 = GUICtrlCreateGroup("ERSETZ - String", 8, 272, 329, 48)
$Input_Ersetze = GUICtrlCreateInput("", 17, 290, 310, 21)
GUICtrlCreateGroup("", -99, -99, 1, 1)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button_Cancel
Exit
Case $Button_Start
$anzahl = _GUICtrlListCount($List_Auswahl)
$suche = GUICtrlRead($Input_Suche)
$ersetze = GUICtrlRead($Input_Ersetze)
If $anzahl > 0 And $suche <> "" And $ersetze <> "" Then
For $i = 0 To $anzahl-1
$pfad = _GUICtrlListGetText($List_Auswahl, $i)
; öffne Datei $pfad
; durchsuche nach $suche
; ersetze mit $ersetze
Next
Else
MsgBox(0, 'ACHTUNG!', "Nicht alle notwendigen Angaben vorhanden")
EndIf
Case $Button_Auswahl
$datei = FileOpenDialog("Auswahl Datei", @HomeDrive, "All (*.*)")
If $datei <> "" Then GUICtrlSetData($List_Auswahl, $datei)
EndSwitch
WEnd