#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 249, 144)
$Checkbox1 = GUICtrlCreateCheckbox("Checkbox1", 8, 8, 97, 17)
$Checkbox2 = GUICtrlCreateCheckbox("Checkbox2", 8, 32, 97, 17)
$Checkbox3 = GUICtrlCreateCheckbox("Checkbox3", 8, 56, 97, 17)
$Checkbox4 = GUICtrlCreateCheckbox("Checkbox4", 8, 80, 97, 17)
$Button1 = GUICtrlCreateButton("Проверить состояние Checkbox'ов", 5, 112, 240, 25, $WS_GROUP)
$Label1 = GUICtrlCreateLabel("", 112, 8, 100, 20)
$Label2 = GUICtrlCreateLabel("", 112, 32, 100, 20)
$Label3 = GUICtrlCreateLabel("", 112, 56, 100, 20)
$Label4 = GUICtrlCreateLabel("", 112, 80, 100, 20)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
$check=GUICtrlRead($Checkbox1)
If $check=1 then
GUICtrlSetData($Label1,'Отмечен')
Else
GUICtrlSetData($Label1,'Не отмечен')
EndIf
$check=GUICtrlRead($Checkbox2)
If $check=1 then
GUICtrlSetData($Label2,'Отмечен')
Else
GUICtrlSetData($Label2,'Не отмечен')
EndIf
$check=GUICtrlRead($Checkbox3)
If $check=1 then
GUICtrlSetData($Label3,'Отмечен')
Else
GUICtrlSetData($Label3,'Не отмечен')
EndIf
$check=GUICtrlRead($Checkbox4)
If $check=1 then
GUICtrlSetData($Label4,'Отмечен')
Else
GUICtrlSetData($Label4,'Не отмечен')
EndIf
EndSwitch
WEnd