home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Frostbyte's 1980s DOS Shareware Collection
/
floppyshareware.zip
/
floppyshareware
/
LUNACY
/
SPARKL23.ZIP
/
SP-DEMO.BAT
< prev
next >
Wrap
DOS Batch File
|
1990-06-24
|
5KB
|
153 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
Rem --- A little music compliments of Option 1: Sound ---
Rem
sparkle 1 99
sparkle 3 25 25 112 / /── Press any key to continue ──
cls
Rem --- Display 2 "windows" using Option 6: Window ---
Rem
sparkle 6 1 1 22 80 64 0 /
sparkle 6 4 4 18 78 112 -2 /This simple batch file demonstrates Sparkle's options.
Rem
Rem --- Display text inside our window using Option 5: QuikPrint ---
Rem
sparkle 5 6 13 112 /You've already seen (or heard) 5 of Sparkle's Options:
sparkle 5 8 15 112 /Option 1: Sound Effects (William Tell Overture)
sparkle 5 10 22 112 /4: Big! Font (the last screen)
sparkle 5 12 22 112 /5: QuikPrint (which is printing this)
sparkle 5 14 22 112 /6: Window (5 styles; with or without a shadow)
sparkle 5 16 22 112 /3: Ask (Below; print message, get response)
sparkle 3 25 25 112 / /── Press any key to continue ──
cls
sparkle 6 11 30 17 77 79 1 /Sound Effects
sparkle 5 13 32 79 /Here are a few of the 35 sound effects that
sparkle 5 15 32 79 /Sparkle offers you (not counting Wm. Tell).
echo on
sparkle 1 3
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
pause
echo off
cls
Rem
Rem --- Display another "window" the "normal batch file way" ---
Rem
echo ┌─────────────────────────────────────────────────────────────────────────┐
echo │ │
echo │ When you press a key, we'll demonstrate Option 2: SCROLLING BAR MENUS. │
echo │ │
echo │ The 1st menu will be Vertical, the 2nd, Horizontal. │
echo │ │
echo │ │
echo │ This also demonstrates Option 3: ASK (which prints the message below).│
echo │ │
echo └─────────────────────────────────────────────────────────────────────────┘
sparkle 3 10 25 112 / /── Press any key to continue ──
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 5 24 14 112 / This demonstrates Option 2: Scrolling Bar Menus. /
sparkle 5 25 14 112 / "Com" screen created by our P-Screen program. /
sparkle 2 5 49 22 78 112 1
cls
If Errorlevel 27 goto vEscapePressed
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
:vEscapePressed
echo You pressed Escape . . . .
goto HorizontalMenu
:Num6
echo You chose number 6 . . . .
goto HorizontalMenu
:Num5
echo You chose number 5 . . . .
goto HorizontalMenu
:Num4
echo You chose number 4 . . . .
goto HorizontalMenu
:Num3
echo You chose number 3 . . . .
goto HorizontalMenu
:Num2
echo You chose number 2 . . . .
goto HorizontalMenu
:Num1
echo You chose number 1 . . . .
Goto HorizontalMenu
:NoVertical
sparkle 4 6 2 15 221 /Can't Find
sparkle 4 14 2 15 221 /V-Menu.Com
:HorizontalMenu
sparkle 3 25 25 112 / /── Press any key to continue ──
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 5 24 19 112 / Here's a Horizontal Scrolling Bar Menu.
sparkle 5 25 19 112 / Press: │ cursor keys; ─┘ when done.
sparkle 2 13 6 13 74 112 0
cls
If Errorlevel 27 goto HEscapePressed
If Errorlevel 6 goto YouChose6
If Errorlevel 5 goto YouChose5
If Errorlevel 4 goto YouChose4
If Errorlevel 3 goto YouChose3
If Errorlevel 2 goto YouChose2
If Errorlevel 1 goto YouChose1
goto End
:HEscapePressed
echo You pressed Escape . . . .
goto End
:YouChose6
echo You chose number 6 . . . .
goto End
:YouChose5
echo You chose number 5 . . . .
goto End
:YouChose4
echo You chose number 4 . . . .
goto End
:YouChose3
echo You chose number 3 . . . .
goto End
:YouChose2
echo You chose number 2 . . . .
goto End
:YouChose1
echo You chose number 1 . . . .
Goto End
:NoHorizontal
sparkle 4 6 2 15 221 /Can't Find
sparkle 4 14 2 15 221 /H-Menu.Com
:end
sparkle 5 25 9 112 / We hope you enjoyed the demo and find Sparkle helpful. . . . rws /