$GUI = GUICreate('')
$Combo1 = GUICtrlCreateCombo('', 50, 50)
GUICtrlSetData(-1, 'Выключить|Перезагрузить|Logoff', 'Выключить')
GUISetState()
While 1
Switch GUIGetMsg()
Case -3
Exit
Case $Combo1
Switch GUICtrlRead($Combo1)
Case 'Выключить'
MsgBox(0, '', 'Выключить')
Case 'Перезагрузить'
RestartComp()
Case 'Logoff'
MsgBox(0, '', 'Logoff')
Case Else
MsgBox(0, '', 'Ни один из')
EndSwitch
EndSwitch
WEnd
Func RestartComp()
MsgBox(0, '', 'здесь была функция')
EndFunc