Hallo
Ich habe ein Problem ,unzwar
Ich habe eine Checkbox und ein Button,wenn in der Ini steht "0" dann soll die Checkbox unchecked sein ,wenn "1" dann soll die checked sein
Spoiler anzeigen
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 238, 51, 192, 124)
$Input1 = GUICtrlCreateInput("Input1", 8, 8, 121, 21)
$Checkbox1 = GUICtrlCreateCheckbox("Checkbox1", 136, 8, 97, 17)
$Button1 = GUICtrlCreateButton("Button1", 136, 24, 75, 25, $WS_GROUP)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
if IniRead(@ScriptDir & "\acc.config","Account","Check","1") Then
GUICtrlSetState($Checkbox1, $GUI_CHECKED)
Elseif IniRead(@ScriptDir & "\acc.config","Account","Check","") Then
GUICtrlSetState($Checkbox1, $GUI_UNCHECKED)
EndIf
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
WEnd