本帖最后由 xargw 于 2010-10-31 11:41 编辑
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form2 = GUICreate("窗体1", 413, 305, 334, 265)
$Checkbox1 = GUICtrlCreateCheckbox("Checkbox1", 56, 16, 97, 17)
$Button1 = GUICtrlCreateButton("Button1", 88, 80, 75, 25)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
If GUICtrlRead($Checkbox1) = $GUI_CHECKED Then
MsgBox(0,"提示","选中")
EndIf
EndSwitch
WEnd
我错在哪里? |