#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=C:\Users\Administrator\Desktop\PCY_DIY_1.6\10.27\勾选测试\有点问题\论坛看效果\Form1.kxf
$Form1 = GUICreate("Form1", 615, 438, 306, 243)
$Checkbox1 = GUICtrlCreateCheckbox("禁止CMD", 144, 72, 120, 30)
GUICtrlSetFont(-1, 16, 400, 0, "华文中宋")
$Checkbox2 = GUICtrlCreateCheckbox("解除CMD", 280, 72, 120, 30)
GUICtrlSetFont(-1, 16, 400, 0, "华文中宋")
$Checkbox3 = GUICtrlCreateCheckbox("解除注册表", 280, 144, 130, 30)
GUICtrlSetFont(-1, 16, 400, 0, "华文中宋")
$Checkbox4 = GUICtrlCreateCheckbox("禁止组策略", 144, 200, 130, 30)
GUICtrlSetFont(-1, 16, 400, 0, "华文中宋")
$Checkbox5 = GUICtrlCreateCheckbox("解除组策略", 280, 200, 130, 30)
GUICtrlSetFont(-1, 16, 400, 0, "华文中宋")
$Checkbox6 = GUICtrlCreateCheckbox("禁止注册表", 138, 142, 130, 30)
GUICtrlSetFont(-1, 16, 400, 0, "华文中宋")
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Checkbox1
If GUICtrlRead($Checkbox1) = 1 Then
GUICtrlSetState($Checkbox2, $GUI_DISABLE)
GUICtrlSetState($Checkbox2, $GUI_UNCHECKED)
Else
GUICtrlSetState($Checkbox2, $GUI_ENABLE)
GUICtrlSetState($Checkbox2, $GUI_CHECKED)
EndIf
EndSwitch
WEnd