#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
Local $RadioID = 0, $Radio[4]
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 623, 449, 192, 114)
$Group1 = GUICtrlCreateGroup("总体", 72, 64, 505, 321)
$Group2 = GUICtrlCreateGroup("系统类", 120, 136, 201, 169)
$Radio[0] = GUICtrlCreateRadio("IE修复", 144, 176, 65, 17)
GUICtrlSetState(-1, $Gui_Checked)
$Radio[1] = GUICtrlCreateRadio("系统补丁", 240, 177, 73, 17)
GUICtrlCreateGroup("", -99, -99, 1, 1)
$Group3 = GUICtrlCreateGroup("输入法", 328, 136, 209, 169)
$Radio[2] = GUICtrlCreateRadio("搜狗输入法", 351, 172, 89, 17)
$Radio[3] = GUICtrlCreateRadio("五笔输入法", 452, 175, 81, 17)
GUICtrlCreateGroup("", -99, -99, 1, 1)
GUICtrlCreateGroup("", -99, -99, 1, 1)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Radio[0]
_SetRadioState(0)
Case $Radio[1]
_SetRadioState(1)
Case $Radio[3]
_SetRadioState(3)
Case $Radio[2]
_SetRadioState(2)
EndSwitch
WEnd
Func _SetRadioState($sID)
GUICtrlSetState($Radio[$RadioID], $Gui_unChecked)
$RadioID = $sID
GUICtrlSetState($Radio[$RadioID], $Gui_Checked)
EndFunc
这个刚好以前弄过,,,这应该就达到你的要求了. |