ZitatEben nicht. Ich hab mir mal die Werte ausgeben lassen.
Das ist auch richtig
, es ist ja der Wert des Handles, nicht der Status. Denn bekommst du erst mit GUICtrlRead( )
Spoiler anzeigen
[autoit]
#include <GUIConstants.au3>
[/autoit] [autoit][/autoit] [autoit]Opt("GUIOnEventMode", 1)
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("AForm1", 633, 454, 193, 115)
GUISetOnEvent($GUI_EVENT_CLOSE, "AForm1Close")
$Checkbox1 = GUICtrlCreateCheckbox("ACheckbox1", 144, 216, 97, 17)
GUICtrlSetOnEvent(-1, "ACheckbox1Click")
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
Sleep(100)
WEnd
Func ACheckbox1Click()
MsgBox(0, '$Checkbox1', '$Checkbox1 = ' & $Checkbox1 & @LF & 'GUICtrlRead($Checkbox1) = '& GUICtrlRead($Checkbox1) )
EndFunc
Func AForm1Close()
Exit
EndFunc