Nabend.
Hab en Problem mit nem aktuellen Script.
Die Funktion des scripts erklärt sich dann vllt selbst...
Das Problem ist i.wo zwichen Zeile 99 und 102.
Hier soll der Text der in der Datei steht, aufgeteilt werden und in die Liste eingetragen werden.
Wenn ich es so mit GUICtrlSetData in die Liste setze, wird nichts getrennt. auch nicht, wenn in der Datei alles untereinander steht.
Hier mal der Code.
Is noch net fertig, aber egal:
Spoiler anzeigen
#include <GUIConstantsEx.au3>
#include <IE.au3>
#include <GUIListBox.au3>
#include <WindowsConstants.au3>
#include <ListBoxConstants.au3>
#include <File.au3>
#Region ### START Koda GUI section ###
$Form1 = GUICreate("Web-Helfer", 639, 440, 202, 127)
$List1 = GUICtrlCreateList("", 16, 72, 225, 292, BitOR($LBS_STANDARD, $LBS_EXTENDEDSEL))
GUICtrlSetData(-1, "www.autoit.de")
GUICtrlCreateLabel("Web-Helfer 1.0", 8, 0, 229, 41)
GUICtrlSetFont(-1, 24, 800, 4, "Arial")
GUICtrlSetColor(-1, 0x0000FF)
$Input1 = GUICtrlCreateInput("", 264, 96, 353, 21)
GUICtrlCreateLabel("Seite eingeben:", 264, 72, 105, 20)
GUICtrlSetFont(-1, 10, 800, 0, "Arial")
GUICtrlSetColor(-1, 0x0000FF)
GUICtrlCreateLabel("Version 1.0", 568, 416, 57, 17)
GUICtrlSetColor(-1, 0x0000FF)
GUICtrlCreateLabel("Made by: Commander21 ( http://www.autoit.de )", 8, 416, 202, 17)
GUICtrlSetColor(-1, 0x0000FF)
$Checkbox1 = GUICtrlCreateCheckbox("Automatisch speichern", 416, 168, 145, 17)
GUICtrlSetState(-1, $GUI_CHECKED)
GUICtrlSetFont(-1, 8, 800, 0, "MS Sans Serif")
GUICtrlCreateLabel("Optionen:", 416, 144, 66, 20)
GUICtrlSetFont(-1, 10, 800, 0, "Arial")
GUICtrlSetColor(-1, 0x0000FF)
$Checkbox2 = GUICtrlCreateCheckbox("Neue Seite sofort öffnen", 416, 200, 200, 17)
GUICtrlSetFont(-1, 8, 800, 0, "MS Sans Serif")
$Checkbox3 = GUICtrlCreateCheckbox("Beenden abfragen *", 416, 232, 137, 17)
GUICtrlSetState(-1, $GUI_CHECKED)
GUICtrlSetFont(-1, 8, 800, 0, "MS Sans Serif")
$Checkbox4 = GUICtrlCreateCheckbox("Automatisch Laden", 416, 264, 177, 17)
GUICtrlSetState(-1, $GUI_CHECKED)
GUICtrlSetFont(-1, 8, 800, 0, "MS Sans Serif")
GUICtrlCreateLabel("* Fragt, ob wirklich beendet", 416, 360, 133, 17)
GUICtrlSetColor(-1, 0x0000FF)
GUICtrlCreateLabel("werden soll, oder nicht.", 424, 376, 113, 17)
GUICtrlSetColor(-1, 0x0000FF)
$Button1 = GUICtrlCreateButton("Web-Seite hinzufügen", 264, 120, 137, 25)
$Button2 = GUICtrlCreateButton("Ausgewählte Seite öffnen", 264, 200, 137, 25)
$Button3 = GUICtrlCreateButton("Seite sofort öffnen", 264, 280, 137, 25)
$Button5 = GUICtrlCreateButton("Liste Laden", 16, 376, 129, 25)
$Button6 = GUICtrlCreateButton("Eintrag löschen", 152, 376, 89, 25)
GUICtrlCreateLabel("Fügt die eingegebene Seite", 264, 152, 134, 17)
GUICtrlSetColor(-1, 0x0000FF)
GUICtrlCreateLabel("der Liste hinzu.", 264, 168, 75, 17)
GUICtrlSetColor(-1, 0x0000FF)
GUICtrlCreateLabel("Öffnet die Seite sofort.", 264, 312, 109, 17)
GUICtrlSetColor(-1, 0x0000FF)
GUICtrlCreateLabel("Öffnet die in der Liste", 264, 232, 104, 17)
GUICtrlSetColor(-1, 0x0000FF)
GUICtrlCreateLabel("ausgewählte Seite.", 264, 248, 94, 17)
GUICtrlSetColor(-1, 0x0000FF)
GUICtrlCreateGroup(" Liste ", 8, 48, 241, 361)
GUICtrlSetFont(-1, 8, 800, 0, "MS Sans Serif")
GUICtrlSetColor(-1, 0x0000FF)
GUICtrlCreateGroup("", -99, -99, 1, 1)
GUICtrlCreateGroup(" Seite hinzufügen / öffnen ", 256, 48, 369, 361)
GUICtrlSetFont(-1, 8, 800, 0, "MS Sans Serif")
GUICtrlSetColor(-1, 0x0000FF)
$Button4 = GUICtrlCreateButton("Speichern", 264, 344, 137, 25)
GUICtrlCreateLabel("Speichert die Liste ab.", 264, 376, 109, 17)
GUICtrlSetColor(-1, 0x0000FF)
GUICtrlCreateGroup("", -99, -99, 1, 1)
GUICtrlCreateGroup(" Optionen ", 408, 120, 209, 281)
GUICtrlSetFont(-1, 8, 800, 0, "MS Sans Serif")
GUICtrlSetColor(-1, 0x0000FF)
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 $Button1
$Input1Read = GUICtrlRead ($Input1)
GUICtrlSetData ($List1, $Input1Read)
GUICtrlSetData ($Input1, "")
Case $Button2
$List1Read = GUICtrlRead ($List1)
_IECreate ($List1Read)
Case $Button3
$List1Read = GUICtrlRead ($List1)
_IECreate ($Input1Read)
Case $Button4
FileOpen (@ScriptDir & "\SiteList.dat", 2)
$List1Count = _GUICtrlListBox_GetCount ($List1)
For $i = 0 To $List1Count
FileWrite (@ScriptDir & "\SiteList.dat", _GUICtrlListBox_GetText ($List1, $i) & ";")
Next
Case $Button6
$List1CurSel = _GUICtrlListBox_GetCurSel ($List1)
_GUICtrlListBox_DeleteString ($List1, $List1CurSel)
Case $Button5
GUICtrlSetData ($List1, "")
$FileRead = FileRead (@ScriptDir & "\SiteList.dat")
$Split = StringSplit ($FileRead, ";")
GUICtrlSetData ($List1, $Split)
EndSwitch
WEnd
Also, hoffe ich hab das Problem gut rüber gebracht, so dass mir einer helfen kann.
THX schonmal
MfG