Hi, ich habe ein Problem. In meinem Script kann man in eine Ini neue Einträge eintragen, die dann in einer GUICtrlCreateList angezeigt werden sollen. Aber immoment muss man das Script erst neustarten.
Ich habe schon einige Threads hier im Forum gefunden, bin aber nicht schlau daraus geworden bzw. habe keine passende Lösung gefunden.
Hier der Teil des Scripts um den es geht:
Spoiler anzeigen
#include <GUIConstants.au3>
#include <GUIListBox.au3>
HotKeySet("{F6}", "_openfox")
HotKeySet("{F7}", "button")
HotKeySet("{F8}", "_foreground")
Dim $addwrote
[/autoit] [autoit][/autoit] [autoit]$Section = IniReadSection("links.ini", "1A")
For $i = 1 To UBound($Section)-1
$addwrote &= "|" & $Section[$i][1]
Next
Global $firepfad
[/autoit] [autoit][/autoit] [autoit]$firelist = IniRead("links.ini", "Settings", "Firefoxpfad", "Vollständiger Firefox Pfad")
[/autoit] [autoit][/autoit] [autoit][/autoit] [autoit][/autoit] [autoit]Opt("RunErrorsFatal", 0)
Opt("GUIOnEventMode", 1)
Opt("WinTitleMatchMode", 2)
$Form1_1 = GUICreate("Speed-It", 313, 452, 193, 125)
$Group1 = GUICtrlCreateGroup("Speed-It - Firefox quickstarter ", 8, 64, 300, 385, -1, $WS_EX_TRANSPARENT)
$Label1 = GUICtrlCreateLabel("Hotkeys:", 16, 88, 54, 17)
GUICtrlSetFont(-1, 8, 800, 4, "MS Sans Serif")
$Label2 = GUICtrlCreateLabel("F6 - Firefox starten. F7 - Go-Button F8 - Speed-It in Vordergrund", 16, 102, 150, 60)
$Button1 = GUICtrlCreateButton("Go! ->", 144, 176, 65, 25, 0)
GUICtrlSetFont(-1, 10, 800, 0, "MS Sans Serif")
GUICtrlSetCursor (-1, 0)
$addy = GUICtrlCreateList("", 16, 176, 121, 240,$WS_BORDER+$WS_VSCROLL)
GUICtrlSetData(-1, $addwrote)
$Label3 = GUICtrlCreateLabel("© Nico Ell, Speed-It | v.0.5.5", 142, 431, 161, 17)
GUICtrlSetColor(-1, 0x85878C)
GUICtrlSetTip(-1, "© Nico Ell, Speed-It")
$Group2 = GUICtrlCreateGroup("Einstellungen", 144, 208, 153, 217)
GUICtrlSetFont(-1, 8, 800, 0, "MS Sans Serif")
$tabopen = GUICtrlCreateCheckbox("Link in neuem Tab öffnen", 152, 232, 137, 17)
$firepfad = GUICtrlCreateInput($firepfad&$firelist, 152, 256, 137, 21)
$Button3 = GUICtrlCreateButton("Pfad speichern", 152, 280, 137, 17, 0)
GUICtrlCreateGroup("", -99, -99, 1, 1)
$Button2 = GUICtrlCreateButton("Neuer Link", 224, 176, 65, 25, 0)
GUICtrlSetFont(-1, 8, 400, 0, "MS Sans Serif")
GUICtrlCreateGroup("", -99, -99, 1, 1)
GUICtrlSetCursor (-1, 3)
$Pic1 = GUICtrlCreatePic("images\head.gif", 0, 0, 305, 60, BitOR($SS_NOTIFY,$WS_GROUP,$WS_CLIPSIBLINGS))
GUICtrlSetCursor (-1, 7)
GUICtrlSetOnEvent($Button1, "button")
GUICtrlSetOnEvent($Button2, "button2")
GUICtrlSetOnEvent($Button3, "button3")
GUISetOnEvent($GUI_EVENT_CLOSE, "CLOSEClicked")
GUISetState(@SW_SHOW)
LG Nico