home *** CD-ROM | disk | FTP | other *** search
/ Monster Media 1994 #1 / monster.zip / monster / UTILS2 / MMAN200.ZIP / MENUDEMO.BAT < prev    next >
DOS Batch File  |  1994-01-01  |  4KB  |  110 lines

  1. @echo off
  2.         goto START
  3.  ╔═════════════════════════════════════════════════════════════════════╗
  4.  ║  SAMPLE BATCH FILE SHOWING SOME OF THE CAPABILITIES OF MENU_MAN     ║
  5.  ║  Version 2.0                                                        ║
  6.  ║  Copyright 1993-1994, MicroMetric, All Rights Reserved.             ║
  7.  ╚═════════════════════════════════════════════════════════════════════╝
  8. :START
  9.         menu_man A %0 m10 cn113 eb ea
  10. rem THIS IS A SAMPLE BATCH FILE USING MENU_MAN
  11. rem.
  12. rem.       It will demonstrate several major MENU_MAN features. 
  13. rem.       ════════════════════════════════════════════════════
  14. rem.
  15. rem This is a text window being displayed for a fixed length of time (30
  16. rem seconds). No selection is required.
  17. rem.                   ┌────────────────────────────┐
  18. rem.                   │ P L E A S E    W A I T ! ! │
  19. rem.                   └────────────────────────────┘
  20. rem [To continue, without waiting the full time period, press any key.]
  21.  
  22.         menu_man Z %0 x1-2
  23. rem THIS IS A CHECK BOX MENU
  24. rem Show the enviorment after the menu.
  25. rem Echo Hello after the menu.
  26. rem Have a message after this menu.
  27. rem eXit this batch file with nothing else done.
  28.         if .%Z4%==.T goto EXIT
  29.         if .%Z1%==.F goto Z1B
  30.                 set
  31.                 pause
  32. :Z1B
  33.         if .%Z2%==.F goto Z2B
  34.                 echo Hello!
  35.                 pause   
  36. :Z2B
  37.         if .%Z3%==.F goto Z3B
  38.                 menu_man Y %0 m10 cn113 ea
  39.                 rem MESSAGE
  40.                 rem This is the message you asked 
  41.                 rem for in the CHECK BOX.
  42. :Z3B
  43.  
  44. rem Clear Enviorment set in last check box
  45.         menu_man !Z
  46.  
  47.         menu_man B %0 pt,l
  48. rem THIS IS MENU ONE, WITH SIMPLE SELECTION
  49. rem Continue
  50. rem eXit
  51.         if ERRORLEVEL 1 if NOT ERRORLEVEL 2 goto 2
  52.         if ERRORLEVEL 2 if NOT ERRORLEVEL 3 goto EXIT
  53. :2
  54.         menu_man C %0 pc,c w200
  55. rem THIS IS MENU TWO, WITH SLOW EXPLODE AND MULTIPLE SELECTION
  56. rem Continue with the next menu
  57. rem Start this routine over
  58. rem eXit
  59.         if ERRORLEVEL 1 if NOT ERRORLEVEL 2 goto 3
  60.         if ERRORLEVEL 2 if NOT ERRORLEVEL 3 goto START
  61.         if ERRORLEVEL 3 if NOT ERRORLEVEL 4 goto EXIT
  62. :3
  63.         menu_man D %0 pb,r t10 b512,500
  64. rem THIS IS MENU THREE, WITH LONG SOUND AND LIMITED TIME SELECTION
  65. rem Continue with the next menu
  66. rem Start this routine over
  67. rem eXit
  68.         if ERRORLEVEL 1 if NOT ERRORLEVEL 2 goto 4
  69.         if ERRORLEVEL 2 if NOT ERRORLEVEL 3 goto START
  70.         if ERRORLEVEL 3 if NOT ERRORLEVEL 4 goto EXIT
  71. :4
  72.         menu_man 1 %0 m0 cn113 ea
  73. rem THIS IS DEMONSTRATE HOW A MENU CAN BE MOVED
  74. rem
  75. rem All menu_man menus may be moved by the user.
  76. rem To move a menu use Ctrl + Arrow key combination.
  77. rem
  78. rem Hold down the Ctrl key now press the down arrow key three times
  79. rem and the menu moves down three lines.      
  80. rem
  81. rem
  82. rem                    [To continue press any key.]
  83.  
  84.         menu_man E %0 pt,c eb t10
  85. rem THIS IS MENU FOUR, WITH NO SHADOW BORDER AND CLEAR SCREEN BEFORE DISPLAY
  86. rem Continue with the next menu
  87. rem Start this routine over
  88. rem eXit
  89.         if ERRORLEVEL 1 if NOT ERRORLEVEL 2 goto 5
  90.         if ERRORLEVEL 2 if NOT ERRORLEVEL 3 goto START
  91.         if ERRORLEVEL 3 if NOT ERRORLEVEL 4 goto EXIT
  92. :5
  93.         menu_man F %0 pc,r w0 b0,0 t10
  94. rem THIS IS MENU FIVE, WITH NO EXPLODE OR SOUND
  95. rem Continue with the next menu
  96. rem Start this routine over
  97. rem eXit
  98.         if ERRORLEVEL 1 if NOT ERRORLEVEL 2 goto 6
  99.         if ERRORLEVEL 2 if NOT ERRORLEVEL 3 goto START
  100.         if ERRORLEVEL 3 if NOT ERRORLEVEL 4 goto EXIT
  101. :6
  102.         menu_man G %0 pb,l t10 l2
  103. rem THIS IS THE LAST MENU, WITH HIGHLIGHT LOCATION 
  104. rem Start this routine over
  105. rem eXit
  106.         if ERRORLEVEL 1 if NOT ERRORLEVEL 2 goto START
  107.         if ERRORLEVEL 2 if NOT ERRORLEVEL 3 goto EXIT
  108. :EXIT
  109.  
  110.