Difference between revisions of "MessageBox Tutorial"
Jump to navigation
Jump to search
Showed how to put in more options
imported>Haama (Added reason for moving activator, renamed Multiple Menu section) |
imported>Haama (Showed how to put in more options) |
||
Line 170: | Line 170: | ||
Elseif (Choosing == -1) ;Display your menu | Elseif (Choosing == -1) ;Display your menu | ||
Messagebox "What would you like to do?" "First Option" "Second Option" | Messagebox "What would you like to do?" "First Option" "Second Option" ;... | ||
Set Choosing to 1 | Set Choosing to 1 | ||
Set Choice to GetButtonPressed | Set Choice to GetButtonPressed | ||
Line 183: | Line 183: | ||
Set Choosing to 0 ;to finish up | Set Choosing to 0 ;to finish up | ||
Elseif (Choice == 1) ;Second Option | Elseif (Choice == 1) ;Second Option | ||
;run your code for the second | ;run your code for the second decision | ||
Set Choosing to 0 ;to finish up | Set Choosing to 0 ;to finish up | ||
;... | |||
;Further illustrations of more options | |||
; Elseif (Choice == #) ;Nth Option | |||
;run your code for the nth decision | |||
; Set Choosing to 0 | |||
; Elseif (Choice == 9) ;Final/Tenth Option | |||
;run your code for the tenth decision | |||
; Set Choosing to 0 | |||
Endif | Endif | ||
Endif | Endif |