Hai leute,
Kann mir einer verraten wieso dieses sciprt nicht geht?
Spoiler anzeigen
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
$iniFrage = IniReadSection("Data.txt", "Frage")
$iniantwort1 = IniReadSection("Data.txt", "Antworten")
$Form1 = GUICreate("Abstimmung", 188, 132, 192, 124)
$Checkbox1 = GUICtrlCreateCheckbox($iniantwort1[1][1], 8, 32, 97, 17)
$Checkbox2 = GUICtrlCreateCheckbox($iniantwort1[1][2], 8, 64, 97, 17)
$Label1 = GUICtrlCreateLabel($iniFrage[1][1], 8, 8, 175, 17)
$Button1 = GUICtrlCreateButton("Abstimmen", 8, 96, 75, 25, $WS_GROUP)
$Button2 = GUICtrlCreateButton("Abrechen", 96, 96, 75, 25, $WS_GROUP)
GUISetState(@SW_SHOW)
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
WEnd
Die data.txt datei sieht so aus:
Spoiler anzeigen
[Frage]
=Wird morgen jemand sterben?
[Antworten]
=Ja nein
MFg CF gaming