#include <GUIConstants.au3>
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=C:\Documents and Settings\Administrator\桌面\Form1.kxf
Global $Result=""
Global $Checkbox[20]
$Form1 = GUICreate("Form1", 482, 239, 192, 114)
$Checkbox[0] = GUICtrlCreateCheckbox("Checkbox1", 24, 16, 97, 17)
$Checkbox[1] = GUICtrlCreateCheckbox("Checkbox2", 24, 48, 97, 17)
$Checkbox[2] = GUICtrlCreateCheckbox("Checkbox3", 24, 80, 97, 17)
$Checkbox[3] = GUICtrlCreateCheckbox("Checkbox4", 24, 112, 97, 17)
$Checkbox[4] = GUICtrlCreateCheckbox("Checkbox5", 24, 144, 97, 17)
$Checkbox[5] = GUICtrlCreateCheckbox("Checkbox6", 136, 16, 97, 17)
$Checkbox[6] = GUICtrlCreateCheckbox("Checkbox7", 136, 48, 97, 17)
$Checkbox[7] = GUICtrlCreateCheckbox("Checkbox8", 136, 80, 97, 17)
$Checkbox[8] = GUICtrlCreateCheckbox("Checkbox9", 136, 112, 97, 17)
$Checkbox[9] = GUICtrlCreateCheckbox("Checkbox10", 136, 144, 97, 17)
$Checkbox[10] = GUICtrlCreateCheckbox("Checkbox11", 264, 16, 97, 17)
$Checkbox[11] = GUICtrlCreateCheckbox("Checkbox12", 264, 48, 97, 17)
$Checkbox[12] = GUICtrlCreateCheckbox("Checkbox13", 264, 80, 97, 17)
$Checkbox[13] = GUICtrlCreateCheckbox("Checkbox14", 264, 112, 97, 17)
$Checkbox[14] = GUICtrlCreateCheckbox("Checkbox15", 264, 144, 97, 17)
$Checkbox[15] = GUICtrlCreateCheckbox("Checkbox16", 384, 16, 97, 17)
$Checkbox[16] = GUICtrlCreateCheckbox("Checkbox17", 384, 48, 97, 17)
$Checkbox[17] = GUICtrlCreateCheckbox("Checkbox18", 384, 80, 97, 17)
$Checkbox[18] = GUICtrlCreateCheckbox("Checkbox19", 384, 112, 97, 17)
$Checkbox[19] = GUICtrlCreateCheckbox("Checkbox20", 384, 144, 97, 17)
$CheckBT = GUICtrlCreateButton("检查", 192, 184, 75, 25)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $CheckBT
If BitAND(GUICtrlRead($Checkbox[0]),$GUI_CHECKED) Then
MsgBox(0,"","1Checked!")
EndIf
If BitAND(GUICtrlRead($Checkbox[1]),$GUI_CHECKED) Then
MsgBox(0,"","2Checked!")
EndIf
If BitAND(GUICtrlRead($Checkbox[2]),$GUI_CHECKED) Then
MsgBox(0,"","3Checked!")
EndIf
If BitAND(GUICtrlRead($Checkbox[3]),$GUI_CHECKED) Then
MsgBox(0,"","4Checked!")
EndIf
If BitAND(GUICtrlRead($Checkbox[4]),$GUI_CHECKED) Then
MsgBox(0,"","5Checked!")
EndIf
If BitAND(GUICtrlRead($Checkbox[5]),$GUI_CHECKED) Then
MsgBox(0,"","6Checked!")
EndIf
If BitAND(GUICtrlRead($Checkbox[6]),$GUI_CHECKED) Then
MsgBox(0,"","7Checked!")
EndIf
If BitAND(GUICtrlRead($Checkbox[7]),$GUI_CHECKED) Then
MsgBox(0,"","8Checked!")
EndIf
If BitAND(GUICtrlRead($Checkbox[8]),$GUI_CHECKED) Then
MsgBox(0,"","9Checked!")
EndIf
If BitAND(GUICtrlRead($Checkbox[9]),$GUI_CHECKED) Then
MsgBox(0,"","10Checked!")
EndIf
If BitAND(GUICtrlRead($Checkbox[10]),$GUI_CHECKED) Then
MsgBox(0,"","11Checked!")
EndIf
If BitAND(GUICtrlRead($Checkbox[11]),$GUI_CHECKED) Then
MsgBox(0,"","12Checked!")
EndIf
If BitAND(GUICtrlRead($Checkbox[12]),$GUI_CHECKED) Then
MsgBox(0,"","13Checked!")
EndIf
If BitAND(GUICtrlRead($Checkbox[13]),$GUI_CHECKED) Then
MsgBox(0,"","14Checked!")
EndIf
If BitAND(GUICtrlRead($Checkbox[14]),$GUI_CHECKED) Then
MsgBox(0,"","15Checked!")
EndIf
If BitAND(GUICtrlRead($Checkbox[15]),$GUI_CHECKED) Then
MsgBox(0,"","16Checked!")
EndIf
If BitAND(GUICtrlRead($Checkbox[16]),$GUI_CHECKED) Then
MsgBox(0,"","17Checked!")
EndIf
If BitAND(GUICtrlRead($Checkbox[17]),$GUI_CHECKED) Then
MsgBox(0,"","18Checked!")
EndIf
If BitAND(GUICtrlRead($Checkbox[18]),$GUI_CHECKED) Then
MsgBox(0,"","19Checked!")
EndIf
If BitAND(GUICtrlRead($Checkbox[19]),$GUI_CHECKED) Then
MsgBox(0,"","20Checked!")
EndIf
EndSwitch
WEnd