Hallo,
weiß jemand wie man eine ini durchblättern kann?
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=c:\users\mcc\desktop\autoit-programmierung\inianzeiger.kxf
$Form1_1 = GUICreate("Form1", 403, 67, 306, 277)
$btniniWahl = GUICtrlCreateButton("Ini öffnen", 8, 24, 75, 25, $WS_GROUP)
$btnstart = GUICtrlCreateButton("<<", 88, 24, 75, 25, $WS_GROUP)
$btnEnde = GUICtrlCreateButton(">>", 304, 24, 75, 25, $WS_GROUP)
$btnzurueck = GUICtrlCreateButton("<", 160, 24, 75, 25, $WS_GROUP)
$btnvor = GUICtrlCreateButton(">", 232, 24, 75, 25, $WS_GROUP)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $btniniWahl
$openini = FileOpenDialog("Bitte wählen Sie einen Katalog:", @ScriptDir & "\", "Einstellungen (*.ini;*.txt)", 1 + 4)
If @error Then
MsgBox(4096, "", "No File(s) chosen")
Else
$openini = StringReplace($openini, "|", @CRLF)
EndIf
Case $btnstart
Case $btnEnde
Case $btnzurueck
Case $btnvor
Global $i = 1
While 1
$Starte = IniRead($openini, "Startseite", $i, "NotFound")
MsgBox(4096,"Info",$Starte)
$i = $i +1
ExitLoop
WEnd
EndSwitch
WEnd
Hier habe ich irgendwo ein Fehler!
Ich möchte es so haben, daß ich jedesmal klicken muß
um einen INI-Eintrag z.B. nach vorne zu blättern.
Meine Ini:
[autoit]
[Startseite]
1=Inhalt1
2=Inhalt2
3=Inhalt4
Viele Grüße
Ilse ![]()