#include <GuiConstants.au3>
GuiCreate("MyGUI", 392, 316,-1, -1 , BitOR($WS_OVERLAPPEDWINDOW, $WS_CLIPSIBLINGS))
$Radio_1 = GuiCtrlCreateRadio("Radio1", 30, 40, 160, 40)
$Radio_2 = GuiCtrlCreateRadio("Radio2", 30, 100, 160, 40)
$Radio_3 = GuiCtrlCreateRadio("Radio3", 30, 170, 160, 40)
GuiSetState()
While 1
$msg = GuiGetMsg()
Select
Case $msg = $GUI_EVENT_CLOSE
ExitLoop
Case $msg = $Radio_1
MsgBox (0,"Checked", "Radio button 1")
Case $msg = $Radio_2
MsgBox (0,"Checked", "Radio button 2")
Case $msg = $Radio_3
MsgBox (0,"Checked", "Radio button 3")
Case Else
;;;
EndSelect
WEnd
Exit