1# landays #include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 633, 447, 192, 124)
$Radio1 = GUICtrlCreateRadio("&Radio1", 104, 48, 257, 33)
$Radio2 = GUICtrlCreateRadio("R&adio2", 104, 96, 257, 33)
$Checkbox1 = GUICtrlCreateCheckbox("&Checkbox1", 96, 160, 273, 41)
$Button1 = GUICtrlCreateButton("Button&1", 80, 304, 177, 49, $WS_GROUP)
$Button2 = GUICtrlCreateButton("Button&2", 296, 296, 225, 49, $WS_GROUP)
$Button3 = GUICtrlCreateButton("Button&3", 296, 224, 225, 49, $WS_GROUP)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
case $Button1
MsgBox(0,0,"按钮1")
case $Button2
MsgBox(0,0,"按钮2")
case $Button3
MsgBox(0,0,"按钮3")
EndSwitch
WEnd
|