home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
DP Tool Club 25
/
CD_ASCQ_25_1095.iso
/
dos
/
graphic
/
show70
/
promote1.shw
< prev
next >
Wrap
Text File
|
1995-08-01
|
12KB
|
445 lines
;*********************************************************************;
; Scriptname.: PROMOTE1.SHW ;
; Date.......: 1st. Aug. 1995, by RMP DATA. ;
; Purpose....: Promotion for DATASHOW v. 7.0A, as an example script. ;
;*********************************************************************;
; Other files needed:
; -------------------
; sound1.shw, scroll1.shw ; Tight loop script files
; promote1.gra, chess.pcx, hugo1.gif ; Graphic files
; mrnumo.fli ; Animation file
; entrance.snd ; DataShow Music file
; beback.wav ; Wave Music file
; show1.scr - show8.scr ; Captured screen files
SET ESCAPEKEY 27 ; Script can be stopped any time
SET TIMEOUT 10 ; Seconds to wait for keyboard
VARIABLE CREATE counttimes TYPE NUMBER 1 ; Counts number of runs
IF counttimes NE 1 DO JUMPMARK skipsetup ; Jump if not 1st run
VARIABLE CREATE screentype TYPE NUMBER 0 ; Used to determine video mode
COLOR BACKGROUND 1
SCREEN CLEAR
DRAW BOX 79 24
;Check the graphics adapter
IF GRAPH VGA DO
MATH screentype = 3
END
IF GRAPH EGA DO
MATH screentype = 2
END
IF GRAPH CGA DO
MATH screentype = 1
END
IF screentype LE 1 DO
GOXY 3 2
WRITE "THIS PRESENTATION IS MADE FOR EGA/VGA SCREENS!"
GOXY 3 3
WRITE "IT CAN BE RUN ON YOUR SCREEN BUT SOME FEATURES ARE LIMITED..."
GOXY 3 4
WAIT "PUSH ANY KEY..."
END
;Check the sound capabilities
VARIABLE CREATE soundtype TYPE NUMBER 5 ; Used to determine sound mode
VARIABLE CREATE answer TYPE STRING "" ; Used to get answer from user
COLOR BACKGROUND 4
GOXY 26 01 WRITE "< Setup for promotion script >"
COLOR BACKGROUND 1
GOXY 08 06
WRITE "This presentation can include sampled sound capabilities. For this"
GOXY 08 07
WRITE "to work, you need a fast compatible computer and the means to play"
GOXY 08 08
WRITE "sampled sound."
GOXY 22 11 WRITE "Select between one of these choises:"
GOXY 26 13 WRITE "0 - No sound at all"
GOXY 05 14 WRITE "->Select if unsure->"
GOXY 26 14 WRITE "1 - No sampled sound"
GOXY 26 15 WRITE "2 - Via PC Speaker"
GOXY 26 16 WRITE "3 - Via ADLIB card"
GOXY 26 17 WRITE "4 - Via Sound Blaster card"
GOXY 22 19 WRITE "Choise:"
MARK loopread1
GOXY 30 19 READ STRING answer 1
CASE STRING answer "0" DO MATH soundtype = 0
CASE STRING answer "1" DO MATH soundtype = 1
CASE STRING answer "2" DO MATH soundtype = 2
CASE STRING answer "3" DO MATH soundtype = 3
CASE STRING answer "4" DO MATH soundtype = 4
IF soundtype EQ 5 DO JUMPMARK loopread1
;IF SOUND ADLIB DO
; MATH soundtype = 3 ; sound type 3 = adlib
;END
;IF SOUND BLAST DO
; MATH soundtype = 4 ; sound type 4 = sound blaster
;END
;Set the sound capabilities for MUSIC PROCESS output
IF soundtype EQ 3 DO
INSTALL SOUND ADLIB
END
IF soundtype EQ 4 DO
INSTALL SOUND BLAST
END
MARK skipsetup ; Jump here if not 1st run
;Make graphics at beginning of this script
IF screentype GE 2 DO
SET GRAPHICS EGA1
END
IF screentype EQ 1 DO
SET GRAPHICS CGA
END
COLOR ATTRIBUTE 31 ; Set to blue background, white foreground
COLOR BACKGROUND 1 ; Set the background to blue
COLOR FOREGROUND 15 ; Set the foreground to white
SCREEN CLEAR
SET DELAYFACTOR 5
SET SHADOW 4
GOXY 30 2 WRITE "Welcome to a presentation of"
EFFECT TEXTTYPE 3 6
GOXY 26 3 WRITE "DataShow"
EFFECT TEXTTYPE 0 1
GOXY 10 12 DRAW LINE 60
GOXY 10 20 DRAW LINE 60
GOXY 1 14
IF soundtype NE 0 DO
SPEAK "W-E-L-L-K-U-M-E"
SPEAK "T-OO D-A-TH-A-S-H-U-W"
END
DEFINE
/////// ////// /////// ////// /////// // // /////// // // //
// // // // // // // // // // // // // // //
// // //////// // //////// //////// //////// // // // // //
// // // // // // // // // // // // // // //
/////// // // // // // /////// // // /////// //////
END
SET DELAYFACTOR 0 ; Set waiting period to zero
MOTION LEFT 0 ; Move defined area across screen
MOTION RIGHT 79 ; Move defined area partly back on screen
EFFECT TEXTTYPE 1 6
GOXY 30 20 WRITE "V. 7.0A"
EFFECT TEXTTYPE 0 1
WAIT 3
SET SHADOW OFF
IF screentype NE 0 DO
SET GRAPHICS OFF
END
SET CURSOR OFF
SHOW SCREEN "show1.scr" TXT ; Show screen saved with CAPTURE
IF soundtype NE 0 DO
MUSIC PROCESS "entrance.snd" SND
ELSE
WAIT 2
END
WAIT 1
COLOR BACKGROUND 3 ; Set the background to cyan
SCREEN CLEAR
GOXY 1 20
SCREEN WINDOW 79 4 ; Set part of screen as window
COLOR BACKGROUND 7
SCREEN CLEAR ; Clear only the current window area
GOXY 1 1
SCREEN WINDOW 79 24 ; Set back to all of the screen
COLOR ATTRIBUTE 63 ; Set to cyan background, white foreground
GOXY 6 2 DRAW BOX 70 14
SET CURSOR ON
SET DELAYFACTOR 5
GOXY 10 4
WRITE "Together with the resident program CAPTURE, you can create pre-"
GOXY 10 6
WRITE "sentations fast and easy. You CAPTURE screens from programs and"
GOXY 10 8
WRITE "show them from DATASHOW like this screen to be shown here......"
WAIT 2
SCREEN GET ; Save the current screen to a buffer
SET CURSOR OFF
SHOW SCREEN "show2.scr" TXT ; Show screen saved with CAPTURE
WAIT 2
IF soundtype NE 0 DO
SPEAK "C-A-P-T-U-R-E"
WAIT 1
SPEAK "AE"
SPEAK "S-K-R-EE-EE-N"
END
WAIT 2
SCREEN WIPE SPLIT
SCREEN PUT ; Retrieve saved screen from the buffer
SET CURSOR ON
GOXY 10 10
WRITE "It is a simple task to create scripts and have them shown on"
GOXY 10 12
WRITE "the screen with incredible flexibility. Scripts are ordinary"
GOXY 10 14
WRITE "ASCII files. Here the easy method to make scripts is shown..."
IF soundtype NE 0 DO
SPEAK "P-U-S-H"
WAIT 1
SPEAK "A-N-I"
WAIT 1
SPEAK "K-E-I"
END
GOXY 10 20
WAIT "Push any key" ; Wait for any key to be pushed or TIMEOUT
SET CURSOR OFF
COLOR ATTRIBUTE 0
SHOW SCREEN "show3.scr" TXT ; Show screen saved with CAPTURE
WAIT 4
SHOW SCREEN "show4.scr" TXT ; Show screen saved with CAPTURE
WAIT 4
SHOW SCREEN "show5.scr" TXT ; Show screen saved with CAPTURE
WAIT 4
EFFECT GLITTER
WAIT 1
SCREEN CLEAR
GOXY 10 4
WRITE "It is also a simple task to create several slides and have them"
GOXY 10 6
WRITE "shown on the screen with incredible flexibility and control."
GOXY 10 9
WRITE "Here the easy method to make slides is shown..."
WAIT 3
SHOW SCREEN "show6.scr" TXT ; Show screen saved with CAPTURE
WAIT 4
IF soundtype NE 0 DO
SET TEXTSOUND ON
END
COLOR BACKGROUND 4 ; Set the background to red
SCREEN CLEAR
GOXY 10 4
WRITE "You can also write your scripts, slides or graphics to a printer!"
WAIT 3
SHOW SCREEN "show7.scr" TXT ; Show screen saved with CAPTURE
WAIT 2
COLOR BACKGROUND 3 ; Set the background to cyan
GOXY 13 5 WRITE "PROMOTE1.SHW"
WAIT 3
COLOR ATTRIBUTE 63
SET TEXTSOUND OFF
SET DELAYFACTOR 0
SCREEN CLEAR
GOXY 10 10 DRAW BOX 32 2
GOXY 11 11 WRITE "You can create single sounds..."
VARIABLE CREATE controlloop TYPE NUMBER 1 ; Variable to control loops
MARK loopsound1 ; Create a mark that can be jumped to
VARIABLE CREATE soundloop TYPE NUMBER 1 ; Variable to control sound
DO FILE "sound1.shw" ; Call another (sub) program
VARIABLE RELEASE soundloop ; Clean up after us, for next time round
EFFECT SCROLL DOWN
VARIABLE INCREASE controlloop 1
IF controlloop LE 3 DO JUMPMARK loopsound1
VARIABLE RELEASE controlloop ; Clean up after us, for next time round
WAIT 1
GOXY 20 8 WRITE "Or play songs, that you write yourself!"
GOXY 20 9 DRAW LINE 38
IF soundtype NE 0 DO
MUSIC PROCESS "entrance.snd" SND
END
WAIT 1
GOXY 20 19 WRITE "Or play sounds in the WAV (windows) format!"
GOXY 20 20 DRAW LINE 42
IF soundtype GE 2 DO
MUSIC PROCESS "beback.wav" WAV 11000
END
WAIT 3
COLOR BACKGROUND 2 ; Set the background to green
SCREEN CLEAR
GOXY 10 8
WRITE "Besides this you can control a lot of things yourself. You can"
GOXY 10 10
WRITE "draw your own pictures or develop your own logo in DATASHOW."
GOXY 10 12
WRITE "For this purpose there is a menu for graphic drawing..."
WAIT 6
SHOW SCREEN "show8.scr" TXT ; Show screen saved with CAPTURE
WAIT 4
SET DELAYFACTOR 5
GOXY 26 12
SCREEN WINDOW 50 5
SCREEN CLEAR
COLOR FOREGROUND 1
GOXY 26 12
COLOR ATTRIBUTE 47 ; Set to green background, white foreground
DRAW BOX 50 5
GOXY 3 3 WRITE "By selecting F4 you can draw your own drawings,"
GOXY 3 4 WRITE "and then display them from a script like this.."
WAIT 4
GOXY 1 1
SCREEN WINDOW 79 24
IF screentype LT 2 DO
SCREEN CLEAR
WRITE "Here a number of graphic screens would have been show. - These"
GOXY 1 3
WRITE "screens require a high graphic mode and cannot be shown on your"
GOXY 1 5
WRITE "screen. This demonstration just skips them and continues..."
GOXY 1 7
WAIT "Push any key"
END
IF screentype LT 2 DO JUMPMARK skipscreen
SET GRAPHICS EGA1
SHOW SCREEN "promote1.gra" GRA
WAIT 4
SCREEN WIPE SPLIT
SCREEN CLEAR
GOXY 10 10 WRITE "You can also show GRAPHICs created from other programs."
GOXY 10 12 WRITE "Here DataShow display a screen saved in the PCX format -"
GOXY 10 14 WRITE "saved from e.g. the program PaintBrush (TM)."
WAIT 4
DO FILE "sprite1.shw"
WAIT 4
SET GRAPHICS EGA1
SCREEN CLEAR
GOXY 10 10 WRITE "AND here DataShow displays a screen saved in the GIF"
GOXY 10 12 WRITE "format; made by CompuServe; with a wealth of files."
WAIT 4
SHOW SCREEN "hugo1.gif" GIF
WAIT 4
SCREEN CLEAR
GOXY 2 8 WRITE "NOW DataShow ALSO displays screens"
GOXY 2 10 WRITE "saved in the FLI format; That's all"
GOXY 2 12 WRITE "kinds of animations."
WAIT 4
VARIABLE CREATE notimes TYPE NUMBER 0
MARK loopmovie1
SHOW SCREEN "MRNUMO.FLI" FLI
VARIABLE INCREASE notimes 1
IF notimes LE 3 DO JUMPMARK loopmovie1
VARIABLE RELEASE notimes
WAIT 1
SET GRAPHICS EGA1
COLOR BACKGROUND 1
COLOR FOREGROUND 12
SCREEN CLEAR
SET DELAYFACTOR 4
GOXY 5 6 WRITE "NEW in DataShow scripts:"
GOXY 5 10 WRITE "Now you can also stay in graphics mode"
GOXY 5 12 WRITE "- and most commands work as in text mode!"
GOXY 5 16 WRITE "ALSO, see GUIDE script for basic introduction"
GOXY 5 18 WRITE "- read all about it in INFO.TXT"
WAIT 3
COLOR BACKGROUND 6
COLOR FOREGROUND 14
SCREEN CLEAR
GOXY 10 5
WRITE "Remember to register (pay for) DataShow. You'll then receive:"
WAIT 2
SET DELAYFACTOR 0
COLOR FOREGROUND 11
GOXY 12 9
WRITE "- A Runtime version called SHOWRUN for distribution of scripts"
WAIT 3
GOXY 12 11
WRITE "- A Manual that can be printed on a printer for overview"
WAIT 3
GOXY 12 13
WRITE "- A Utility package for making more music files"
WAIT 3
GOXY 12 15
WRITE "- And more music and graphics files"
WAIT 3
COLOR FOREGROUND 14
GOXY 10 19
WRITE "See the INFO.TXT ascii file for further information!"
WAIT 4
SET GRAPHICS OFF
MARK skipscreen ; Jump to here if insufficient graphics
VARIABLE CREATE counttimes TYPE NUMBER 1
DO FILE "scroll1.shw" ; Call another (sub) program
COLOR FOREGROUND 15
SET SHADOW 2
GOXY 1 8 WRITE "This was run number: "+counttimes
IF soundtype NE 0 DO
SPEAK counttimes
WAIT 1
SPEAK "T-I-M-E-S"
END
WAIT 1
GOXY 10 11
WRITE "Now this presentation starts over again, but you can stop it at"
GOXY 10 13
WRITE "any time you wish by pressing the escape key. Then in DATASHOW"
GOXY 10 15
WRITE "you can try all the marvellous things yourself! Just type SHOW"
GOXY 10 17
WRITE "at the operating system prompt, and you can try out DataShow."
WAIT 1
GOXY 10 20 WRITE "That's all folks..."
IF soundtype NE 0 DO
SPEAK "TH-A-T-S AH-L-L F-OH-L-K-S"
END
SET SHADOW OFF
WAIT 6
EFFECT GLITTER
SET CURSOR ON
VARIABLE INCREASE counttimes 1
CONTINUE