home *** CD-ROM | disk | FTP | other *** search
- {
- | Main Menu script for NewsFlash
- | Alex Howarth (14 September 1996)
-
- REPORT "Main Menu"
- REPEAT
- STD CLS
- | Display our ANSI menu (we could create it in script but i prefer ANSI)
- SEND "ANSI.Menus.Main",2
-
- | Put some info on the menu screen
- LOCATE 59,5
- BFG 7}[{BFG 1}Main Menu{BFG 7}]{STD
- LOCATE 3,DLINES-2 | height of users terminal - 2
- BFG 3}Main Menu, ({BFG 7}RETURN{BFG 3}) to redraw, choose : {STD
-
- | To add another option to the menu add a letter in the ""'s
- GETr option,"FMDSPLIG#" | # will be the sysop's private menu
-
- | Then do something with what has been recieved
-
- | we can have single of multi-line IF statements
-
- IF option="F" THEN
- GOTO "Menus.FileBase"
- ENDIF
-
- IF option="M" THEN GOTO "Menus.MailBase"
-
- IF option="D" GOTO "Menus.Doors"
- IF option="S" RUN "Scripts.MailSysop"
- IF option="P" RUN "Scripts.PageSysop"
- IF option="L" RUN "Scripts.Lines.Script"
- IF option="I" GOTO "Menus.Info"
- IF option="G" THEN
- | could have a menu
- NL
- BFG 7}Are you sure you wish to logoff? [y/{BFG 1}N{BFG 7}] : {
- GETd option,"NY"
- IF option="Y" THEN
- END
- ENDIF
- ENDIF
- IF SYSOP THEN
- IF option="#" GOTO "Menus.Sysop"
- ENDIF
-
- | None of the above? - must be a 'RETURN' (GETr) so we just REPEAT
- UNTIL FALSE
- }