#include ;Constants for GUI Events ; Hides tray icon ;#NoTrayIcon ; create the GUI. $win = GUICreate("Choose Program") ;Show the GUI GUISetState (@SW_SHOW) ; Create the radio buttons GuictrlCreateGroup("Programs", 8, 50,140, 200) $radio = GUICtrlCreateRadio("Notepad", 20, 100) $radio = GUICtrlCreateRadio("Calculator", 20, 120) ;Create the OK button $okButton = GUICtrlCreateButton ( "OK", 300, 360) ; Continuous Loop to check for GUI Events While 1 $msg = GUIGetMsg() Select Case $msg = $GUI_EVENT_CLOSE Exit Case $msg = $okButton $radionumber = GuiCtrlRead($radio) Select case $radionumber = 0 RunWait("Notepad") case $radionumber = 1 RunWait("calc") EndSelect EndSelect WEnd