#include #include #include #include #Region ### START Koda GUI section ### Form= $Form1 = GUICreate("Form1", 406, 308, 261, 200) $testbox = GUICtrlCreateCheckbox("Testbox", 136, 104, 97, 17) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### HotKeySet("c", "_Config") HotKeySet("{ESC}", "_Beenden") While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit EndSwitch WEnd Func _Config() If GUICtrlRead($testbox) = 1 Then MsgBox($MB_SYSTEMMODAL, "Title", "The Checkbox is active.", 3) Else Send ("c") EndIf EndFunc Func _Beenden() Exit EndFunc