#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 147, 161, -1, -1)
$Checkbox1 = GUICtrlCreateCheckbox("Checkbox1", 24, 16, 81, 25)
$Button1 = GUICtrlCreateButton("Button1", 24, 88, 97, 33)
GUISetState(@SW_SHOW)
#endregion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
If GUICtrlRead($Checkbox1) = 1 Then
$iCheck = "12"
Else
$iCheck = "0"
EndIf
MsgBox(0, "", $iCheck, 5)
EndSwitch
WEnd