home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
DP Tool Club 8
/
CDASC08.ISO
/
VRAC
/
BATCHVW1.ZIP
/
AEXMPLES.BAT
< prev
next >
Wrap
DOS Batch File
|
1993-07-12
|
4KB
|
121 lines
@ECHO OFF
echo off
AMSG +27 15 113 35 /ask "AEXMPLES.BAT demonstrates color menus and message prompts" Proceed
IF ERRORLEVEL 1 GOTO EXSTRT
IF ERRORLEVEL 0 GOTO EXEND
:EXSTRT
ACLS /c 15 16
ECHO ************************************************************************
ECHO This tutorial will help familiarize you with the use of color attributes
ECHO as well as demonstrating a variety of color menus and message prompts.
ECHO *
ECHO With a little imagination and experimentation you can create some
ECHO very attractive menus and message windows.
ECHO *
ECHO The following menus are for aesthetic and demonstration purposes.
ECHO They don't actually do anything, unless of course you decide to
ECHO write batch files for them. All Keys function normally.
ECHO *
ECHO ************************************************************************
ECHO NEON MENUS
ECHO *
ECHO Neon effects can be obtained by using similar dark and light
ECHO color combinations.
ECHO *
ECHO ELECTRIC BLUE (The opening screen message)
ECHO ABATMENU +27 15 112 113 216 "[ RUN ]" Solitaire Chess Backgammon Exit
ECHO 16 + 11 = 27 This is Blue plus light Cyan.
ECHO *
PAUSE
ABATMENU +27 15 112 113 216 "[ RUN ]" Solitaire Chess Backgammon Exit
ACLS /c 10 0
ECHO ***************************************************************************
ECHO ELECTRIC GREEN (A sample Dos configuration menu)
ECHO *
ECHO *
ECHO ABATMENU +42 15 112 114 236 "* DOS *" Mouse Doskey "Fastopen C:" Exit
ECHO 32 + 10 = 42 This is Green plus light Green.
ECHO 15 = White text.
ECHO 112 + 0 = White hi-lite bar with Black text.
ECHO 112 + 2 = 114 White background and Green text.
ECHO *
ECHO *
PAUSE
ABATMENU +42 15 112 114 236 "* DOS *" Mouse Doskey "Fastopen C:" Exit
AMSG +42 15 114 42 "Some people prefer this kind of Green"
ABATMENU +42 14 116 114 36 "$ CASH $" Money "More Money" "Lotto Jackpot" Greed
ACLS /c 13 0
ECHO *************************************************************************
ECHO PASSIONATE PURPLE (Sentimental, but effective for demonstrations)
ECHO *
ECHO *
ECHO ABATMENU +93 15 116 117 3 "| PASSION |" Lust Crush Infatuation Love
ECHO 80 + 13 This is Magenta plus light Magenta.
ECHO 15 = white text.
ECHO 112 + 4 = 116 White hi-lite bar with Red text.
ECHO 112 + 5 = 117 White background with Magenta text.
ECHO *
ECHO *
PAUSE
ABATMENU +93 15 116 117 3 "| PASSION |" Lust Crush Infatuation Love
ACLS /c 12 0
ECHO *************************************************************************
ECHO RED HOT (Gawdy, but effective for Warnings)
ECHO *
ECHO *
ECHO ABATMENU +110 14 112 124 11 "* HOT *" Chili Cayenne Jalapeno
ECHO 96 + 14 = 110 Brown plus Yellow.
ECHO 14 = Yellow text.
ECHO 112 White with Black text.
ECHO 112 + 12 = 124 White background with light Red text.
ECHO *
ECHO *
PAUSE
ABATMENU +110 14 112 124 11 "* HOT *" Chili Cayenne Jalapeno
AMSG +110 14 116 157 WARNING! "Warp Engine Overload" "Antimatter Explosion Imminent"
ACLS /c 11 0
ECHO *************************************************************************
ECHO COOL CYAN (Refrigerated food items on the Menu)
ECHO *
ECHO *
ECHO ABATMENU +49 9 120 23 145 "( COOL )" Jello Pudding Sherbert"Ice Cream"
ECHO 48 + 1 = 49 Cyan plus Blue.
ECHO 9 = light Blue text.
ECHO 112 + 8 = 120 White hi-lite with Gray text.
ECHO 16 + 7 = 23 Blue Background with light Gray text.
ECHO *
ECHO *
PAUSE
ABATMENU +49 9 120 23 145 "( COOL )" Jello Pudding Sherbert "Ice Cream"
ACLS /c 14 0
ECHO ************************************************************************
ECHO SUNBURST (For people with sunglasses)
ECHO *
ECHO *
ECHO This one will dazzle or blind them.
ECHO *
ECHO *
ECHO ABATMENU +116 8 95 110 15 ": RAY :" Ultraviolet X-ray Gamma-ray Microwave
ECHO 112 + 4 = 116 White plus Red.
ECHO 8 = Gray text.
ECHO 80 + 15 = 95 Magenta high-lite with White text.
ECHO 96 + 14 = 110 Brown background with Yellow text.
ECHO *
ECHO *
PAUSE
ABATMENU +116 8 95 110 15 ": RAY :" Ultraviolet X-ray Gamma-ray Microwave
ACLS /c 15 80
ECHO ************************************************************************
ECHO That ought to give you the general idea.
ECHO *
ECHO *
ECHO Color Attributes can be displayed by using any of the utility programs.
ECHO *
ECHO Just type the name of the program followed by a /c or the word color.
ECHO EXAMPLE: ABATMENU /c or ABATMENU color
ECHO *
ECHO *
PAUSE
ACLS /hz
:EXEND