home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Black Box 4
/
BlackBox.cdr
/
batch
/
sparkl29.arj
/
SP-DEMO.BAT
< prev
next >
Wrap
DOS Batch File
|
1991-09-11
|
8KB
|
258 lines
echo off
cls
Rem
Rem --- Introduce ourselves using Option 4: Big! Font ---
Rem
Sparkle 4 1 13 12 220 /Welcome
Sparkle 4 9 32 11 223 /To
Sparkle 4 16 13 14 220 /Sparkle
Rem --- A little music, compliments of Option 1: Sound ---
Sparkle 1 9
Rem
Rem --- pause
Sparkle 7 6
Rem --- See if M-Menu.Com is here (The MAIN MENU for this demo) ---
If Not Exist M-Menu.Com goto _NoMain
Goto MainMenu
:_NoMain
cls
Sparkle 4 6 2 15 221 /Can't Find
Sparkle 4 14 1 15 221 /M-Menu.Com
Sparkle 7 12
goto _End
rem ------------------------ Our Main Menu ------------------------
:MainMenu
rem ------------------------ Our Main Menu ------------------------
cls
m-menu
Sparkle 2 5 5 5 76 112 2
cls
If Errorlevel 27 goto _End
If Errorlevel 5 goto _End
If Errorlevel 4 goto _BarMenus
If Errorlevel 3 goto _Sounds
If Errorlevel 2 goto _Windows
If Errorlevel 1 goto _Intro
Goto MainMenu
rem ------------------------
:_Intro
rem ------------------------
cls
Rem --- Display 2 "windows" using Option 6: Window ---
Rem
Sparkle 6 1 1 25 80 64 32 /
Sparkle 6 3 4 22 76 112 -2 /This simple batch file demonstrates Sparkle's options.
Rem
Rem --- Display text inside our window using Option 5: QuikPrint ---
Rem
Sparkle 5 5 13 112 /Sparkle offers many options to enhance batch files:
Sparkle 5 7 18 112 /Scrolling Bar Menus (Vertical or Horizontal)
Sparkle 5 9 18 112 /Sound Effects (Over 35 of them)
Sparkle 5 11 18 112 /Big! Font (Like the "Welcome" screen)
Sparkle 5 13 18 112 /QuikPrint (Which prints these messages)
Sparkle 5 15 18 112 /Window (250+ styles; with or without a shadow)
Sparkle 5 17 18 112 /Ask (Prints the message below, gets response)
Sparkle 5 19 18 112 /Pause (Pause from 1\3 second to ???)
Sparkle 5 21 18 112 /Monitor (Determine what type monitor is active)
Sparkle 3 24 25 112 / /── Press any key to continue ──
echo off
cls
Sparkle 6 2 1 23 80 64 32 /
Sparkle 6 4 4 20 76 112 -2 /Sparkle's Option #8: Which type of Adapter\Monitor is active.
sparkle 7 5
sparkle 8 99
If Errorlevel 3 goto PrtInColor
:PrtInMono
Sparkle 5 10 14 15 / Sparkle reports that a MONOCHROME monitor is active.
Sparkle 5 12 14 15 / Printing in a color viewable on MONOCHROME monitors.
goto endMonitor
:PrtInColor
Sparkle 5 10 14 78 / Sparkle reports that a COLOR monitor is active.
Sparkle 5 12 14 78 / Printing in a color viewable on COLOR monitors.
:endMonitor
sparkle 7 12
Goto MainMenu
rem ------------------------
:_Sounds
rem ------------------------
cls
Sparkle 6 11 30 17 77 79 1 /Sound Effects
Sparkle 5 13 37 79 /Here are a few of the many sound
Sparkle 5 15 37 79 /effects that Sparkle offers you.
echo on
Sparkle 1 4
Sparkle 1 5
Sparkle 1 6
Sparkle 1 7
Sparkle 1 8
Sparkle 1 9
Sparkle 1 11
Sparkle 1 12
Sparkle 1 13
Sparkle 1 14
echo off
Sparkle 3 24 1 112 / /── Press any key to continue ──
cls
Sparkle 6 10 30 17 77 79 1 /Or play sounds over & over.
Sparkle 5 13 40 79 /Press a key to stop. Or wait
Sparkle 5 14 40 79 /until we do this 15 times.
Sparkle 1 6 15
cls
Sparkle 6 11 30 17 77 79 1 /
Sparkle 5 13 37 79 /Would you like to listen to the
Sparkle 5 15 37 79 /William Tell Overture? (Yes\No)
Sparkle 3 24 28 112 /YN /── Press [Y]es or [N]o ──
If Errorlevel 89 goto _WmTell
Goto MainMenu
:_WmTell
Sparkle 1 99
Goto MainMenu
rem ------------------------
:_Windows
rem ------------------------
Cls
Sparkle 6 1 1 25 80 27 1 /... This demonstrates Sparkle's very flexible WINDOW options ...
Sparkle 6 3 4 5 24 112 1 / Frame Style # 1
Sparkle 6 7 4 9 24 12 2 / Frame Style # 2
Sparkle 6 11 4 13 24 116 3/ Frame Style # 3
Sparkle 6 15 4 17 24 13 4 / Frame Style # 4
Sparkle 6 19 4 22 24 26 -5 / Frame Style # 5
Sparkle 6 3 55 5 77 112 254/Use any ASCII Char.
Sparkle 6 7 55 9 77 12 21 / ASCII Char. # 21
Sparkle 6 11 55 13 77 113 7 / ASCII Char. # 7
Sparkle 6 15 55 17 77 13 240 / ASCII Char. # 240
Sparkle 6 19 55 22 77 26 -15 / ASCII Char. # 15
Sparkle 6 6 28 11 51 64 -32 / No Frame With Shadow
Sparkle 6 15 28 20 51 64 32 / Or Without Shadows
Sparkle 3 24 25 112 / /── Press any key to continue ──
Goto MainMenu
rem ------------------------
:_BarMenus
rem ------------------------
cls
Sparkle 6 1 1 10 80 27 1 /... Sparkle offers THREE types of menu options ...
Sparkle 5 4 8 27 /Option 3 (ASK) lets you turn ANY screen (text OR graphics) into a menu.
Sparkle 5 6 8 27 /Option 2 (BAR MENU) lets you turn almost any text screen into a:
Sparkle 5 7 17 27 /- Vertical scrolling bar menu, -or-
Sparkle 5 8 17 27 /- Horizontal " " "
Sparkle 5 13 14 112 /── Here's an example of a menu using Option 3, ASK ──
Sparkle 6 15 10 21 70 79 5 /Which of these ice cream flavors do you prefer?
Sparkle 5 18 24 79 /Vanilla --or-- Strawberry
rem --- Use ASK to print a prompt, then accept only V or S
Sparkle 3 21 25 112 /VS /Press "V" or "S" ──
Sparkle 5 18 22 240 /── Frankly, I prefer Chocolate !! ──
Sparkle 7 12
Rem
:_WindowQuikPrint
cls
Rem --- display Vertical Menu (a "Com" screen created by our P-Screen Screen Design) ---
Rem
If Not Exist V-Menu.Com goto _NoVertical
Rem
V-Menu
Sparkle 2 5 50 22 77 1
cls
If Errorlevel 27 goto _vEscape
If Errorlevel 6 goto _Num6
If Errorlevel 5 goto _Num5
If Errorlevel 4 goto _Num4
If Errorlevel 3 goto _Num3
If Errorlevel 2 goto _Num2
If Errorlevel 1 goto _Num1
goto _HorizontalMenu
:_vEscape
echo You pressed Escape . . . .
goto _HorizontalMenu
:_Num6
echo You chose to Quit (# 6)
goto _HorizontalMenu
:_Num5
echo You chose DOS (# 5)
goto _HorizontalMenu
:_Num4
echo You chose dBase (# 4)
goto _HorizontalMenu
:_Num3
echo You chose Paradox (# 3)
goto _HorizontalMenu
:_Num2
echo You chose WordPerfect (# 2)
goto _HorizontalMenu
:_Num1
echo You chose Lotus (# 1)
goto _HorizontalMenu
:_NoVertical
Sparkle 4 6 2 15 221 /Can't Find
Sparkle 4 14 2 15 221 /V-Menu.Com
:_HorizontalMenu
Sparkle 7 12
Rem
cls
Rem --- display a Horizontal Menu (another P-Screen "Com" screen) ---
Rem
If Not Exist H-Menu.Com goto _NoHorizontal
Rem
H-Menu
Sparkle 2 13 6 13 74 0
cls
If Errorlevel 27 goto _HEscape
If Errorlevel 6 goto _HNum6
If Errorlevel 5 goto _HNum5
If Errorlevel 4 goto _HNum4
If Errorlevel 3 goto _HNum3
If Errorlevel 2 goto _HNum2
If Errorlevel 1 goto _HNum1
rem goto _End
Goto MainMenu
:_HEscape
echo You pressed Escape . . . .
goto _HPause
:_HNum6
echo You chose to Quit (# 6)
goto _HPause
:_HNum5
echo You chose DOS (# 5)
goto _HPause
:_HNum4
echo You chose dBase (# 4)
goto _HPause
:_HNum3
echo You chose Paradox (# 3)
goto _HPause
:_HNum2
echo You chose WordPerfect (# 2)
goto _HPause
:_HNum1
echo You chose Lotus (# 1)
rem ------------------------
:_HPause
rem ------------------------
Sparkle 7 6
Goto MainMenu
:_NoHorizontal
Sparkle 4 6 2 15 221 /Can't Find
Sparkle 4 14 2 15 221 /H-Menu.Com
Sparkle 7 12
rem ------------------------
:_end
rem ------------------------
:demo1
Sparkle 6 2 1 24 80 32 32 /
Sparkle 6 4 4 21 75 78 -2 / We hope you enjoy Sparkle!
Sparkle 6 6 8 19 71 112 32 /
Rem
Rem --- Display text inside our window using Option 5: QuikPrint ---
Rem
Sparkle 5 8 13 112 /Remember, Sparkle is 'user-supported' software.
Sparkle 5 9 13 112 /If you use it more than 4-5 times, please contribute
Sparkle 5 10 13 112 /so that we're able to continue improving it.
Sparkle 7 12
Sparkle 5 12 13 112 /For more information on Sparkle or our other programs:
Sparkle 5 14 18 112 /Write: Pro~Formance
Sparkle 5 15 28 112 /132 Alpine Terrace
Sparkle 5 16 28 112 /San Francisco, CA 94117
Sparkle 7 6
Sparkle 5 18 18 112 /Or Call: (415) 863-0530
Sparkle 1 88
Sparkle 7 12