Menu: Difference between revisions

595 bytes added ,  15 years ago
no edit summary
m (corrected categorization of task)
No edit summary
Line 11:
 
Note: This task is fashioned after the action of the [http://www.softpanorama.org/Scripting/Shellorama/Control_structures/select_statements.shtml Bash select statement].
 
=={{header|AutoHotkey}}==
<lang autohotkey>GoSub, CreateGUI
return
 
Submit:
Gui, Submit, NoHide
If Input =
GuiControl,,Output
Else If Input not between 1 and 4
{
Gui, Destroy
Sleep, 500
GoSub, CreateGUI
}
Else {
GuiControlGet, string,,Text%Input%
GuiControl,,Output,% SubStr(string,4)
}
return
 
CreateGUI:
list = fee fie,huff and puff,mirror mirror,tick tock
Loop, Parse, list, `,
Gui, Add, Text, vText%A_Index%, %A_Index%: %A_LoopField%
Gui, Add, Text, ym, Which is from the three pigs?
Gui, Add, Edit, vInput gSubmit
Gui, Add, Edit, vOutput
Gui, Show
return
 
GuiClose:
ExitApp</lang>
 
=={{header|BASIC}}==
{{works with|QuickBasic|4.5}}
Anonymous user