home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Media Share 9
/
MEDIASHARE_09.ISO
/
graphics
/
demos304.zip
/
DEMODEMO.CTL
< prev
next >
Wrap
Text File
|
1993-03-13
|
25KB
|
690 lines
; DEMODEMO.CTL
; Showing some of the features of The DEMO System
; If you recompile, you might want to specify /Q since the noise can
; get pretty annoying.
; You might want to pass in an additional parameter when using
; DEMOMAKE to make sure there's some value for &P1
- (ONCE)
LOADLOGO ^UBatSymbol^ 3
DATA 221,0,24,28,60,62,63,127,127,127,255,255,255,239,206,132,128
DATA 222,66,126,126,126,126,255,255,255,255,255,255,255,255,126,60,24
DATA 224,0,24,56,60,124,252,254,254,254,255,255,255,247,115,33,1
; NOTE: In order to prevent deblanking, the first character after ^UWx^ is
; a space followed by Alt-254, which shows up as a blank.
assign ^UW1^ ▒▒▒▄ ▒▒▒▄ ▒▒▄
assign ^UW2^ ▒▒█ ▒▒█▀ ▒▒█
assign ^UW3^ ▒▒█ ▒▒█ ▒▒▒▒▒▒▄ ▒▒▄ ▒▒▒▒▒▒▄ ▒▒▒▒▒▒▄ ▒▒▒▒▒▒▒▒▄ ▒▒▒▒▒▒▄ ▒▒█
assign ^UW4^ ▒▒█ ▒▒▄ ▒▒█ ▒▒█▀▀▀▀ ▒▒█ ▒▒█▀▀▀▀ ▒▒█▀▒▒█ ▒▒█▒▒█▒▒█ ▒▒█▀▀▀▀ ▒▒█
assign ^UW5^ ▒▒█ ▒▒█ ▒▒█ ▒▒▒▒▄ ▒▒█ ▒▒█ ▒▒█ ▒▒█ ▒▒█▒▒█▒▒█ ▒▒▒▒▄ ▒▒█
assign ^UW6^ ▒▒█ ▒▒█ ▒▒█ ▒▒█▀▀ ▒▒█ ▒▒█ ▒▒█ ▒▒█ ▒▒█ ▀▀▒▒█ ▒▒█▀▀ ▀▀
assign ^UW7^ ▒▒▒▒▒▒▒▒▒▒█ ▒▒▒▒▒▒▄ ▒▒▒▒▒▒▄ ▒▒▒▒▒▒▄ ▒▒▒▒▒▒█ ▒▒█ ▒▒█ ▒▒▒▒▒▒▄ ▒▒▄
assign ^UW8^ ▀▀▀▀▀▀▀▀▀▀ ▀▀▀▀▀▀ ▀▀▀▀▀▀ ▀▀▀▀▀▀ ▀▀▀▀▀▀ ▀▀ ▀▀ ▀▀▀▀▀▀ ▀▀
- (SET1) Defaults for full-screen functions
KEY (HOME) FIELD FIRST
KEY (UP),(LEFT) FIELD -1
KEY (DOWN),(RIGHT) FIELD +1
KEY (END) FIELD LAST
- *MENUW.001 Welcome
SET BASE 1
locate 18 1
ECHO ^UW1^
ECHO ^UW2^
ECHO ^UW3^
ECHO ^UW4^
ECHO ^UW5^
ECHO ^UW6^
ECHO ^UW7^
ECHO ^UW8^@
PAUSE .2
CLS
locate 15 1
ECHO ^UW1^
ECHO ^UW2^
ECHO ^UW3^
ECHO ^UW4^
ECHO ^UW5^
ECHO ^UW6^
ECHO ^UW7^
ECHO ^UW8^
PAUSE .1
CLS
locate 12 1
ECHO ^UW1^
ECHO ^UW2^
ECHO ^UW3^
ECHO ^UW4^
ECHO ^UW5^
ECHO ^UW6^
ECHO ^UW7^
ECHO ^UW8^
PAUSE .1
CLS
locate 9 1
ECHO ^UW1^
ECHO ^UW2^
ECHO ^UW3^
ECHO ^UW4^
ECHO ^UW5^
ECHO ^UW6^
ECHO ^UW7^
ECHO ^UW8^
PAUSE .1
CLS
locate 6 1
ECHO ^UW1^
ECHO ^UW2^
ECHO ^UW3^
ECHO ^UW4^
ECHO ^UW5^
ECHO ^UW6^
ECHO ^UW7^
ECHO ^UW8^
PAUSE .1
CLS
locate 3 1
ECHO ^UW1^
ECHO ^UW2^
ECHO ^UW3^
ECHO ^UW4^
ECHO ^UW5^
ECHO ^UW6^
ECHO ^UW7^
ECHO ^UW8^
PAUSE .1
CLS
locate 1 1
ECHO ^UW1^
ECHO ^UW2^
ECHO ^UW3^
ECHO ^UW4^
ECHO ^UW5^
ECHO ^UW6^
ECHO ^UW7^
ECHO ^UW8^
PAUSE .2
; Dummy page just to have something here
/.
./
SCREEN +1
- (GLOBAL)
SET LOGO ^P25,50^C2^UBatSymbol^^C4What ^C1is^C4 The DEMO System?
KEY (ESC) POP /* Pop back to previous screen
KEY (A-C) CALL @COLOR /* Switch display to color set
KEY (A-M) CALL @MONO /* Switch display to monochrome set
KEY (MOUSER),(MOUSEL) POP /* Either mouse button counts as an escape
/* unless specified elsewhere
- *000 Central menu
SET TOP
SET CURSOR ^C2-->
SET KEYS (SET1)
SET MOUSE ON
KEY (MOUSER),(MOUSEL) SELECT
KEY A,@1 CALL *001 /* Why use it?
KEY B,@2 CALL *002 /* How to create the input screens
KEY C,@3 CALL *003 /* Compilation vs viewing
KEY D,@4 CALL *004 /* Full-screen features
KEY E,@5 CALL *005 /* DOS functions
KEY F,@6 CALL *006 /* Environmental variables
KEY G,@7 CALL *007 /* SET commands
KEY H,@8 CALL *008 /* Reviewing the screen colors
KEY I,@9 CALL *009 /* Other stuff
KEY J,@10 CALL @GRAPHIC /* Do a GIF
KEY X,@11,(ESC) GOTO @QUIT /* Quit demo
/.
This subsystem shows the various features of The DEMO System. See which:
^K A. Why would you want to use The DEMO System?
^K B. How to create the input screens
^K C. Compilation vs viewing
^K D. Full-screen features (incl self-running demos)
^K E. DOS functions (including prompting)
^K F. Variables and system-defined functions
^K G. SET commands
^K H. Reviewing the screen colors
^K I. Other stuff
^K J. Try a graphic (TSHOW WAYNESOF.GIF)
^K X. Quit demo
./
- *001 Why would you use The DEMO System
KEY X,(ESC) POP KEY1
/.
What sort of things can you do with The DEMO System? Well, there are ^C2lots^C0 of
things you can do with it! Some ideas:
^C1-^C0 Create demonstration programs to show people how a bulletin board,
data base program, or anything other text-based system works.
You can even design demonstrations for products on hardware
that the user may not have (like a CD-ROM) so they can better
determine whether they need to buy the hardware or not.
^C1-^C0 Design tutorials to show people how to do things. You can define
any keys to do anything you want so you can simulate most
applications.
^C1-^C0 Create help systems.
^C1-^C0 Create menuing systems. You can duplicate most of the features
of a product like AUTOMENU.
^C1-^C0 Provide interactive access to information screens (like this one).
For example, if you have to provide a series of text files to someone,
you can create a menu of options using The DEMO System and bring up the
appropriate text file based on the user's selection.
^C1-^C0 Create data-entry forms.
Press ^C1X^C0 or ^C1Esc^C0 to return.
./
- *002 How to create the input screens
KEY X,(ESC) POP KEY2
/.
^C1Creating screens
The DEMO System runs off a series of ASCII text screens, initially stored as
separate text files. These screens can be created using screen-capture
facilities or be typed in (like these were). Once created, you can imbed colors
(up to 8 color combinations per screen) and define keyboard entry zones.
The individual screens are referenced in a control file which tells the program
what screens to bring in and which keys cause the system to go to other screens
or do other operations. For example,
; Sample control file
- PAGE.001 First screen (has options A to C, then X to quit)
KEY A GOTO PAGE.002
KEY B GOTO PAGE.003
KEY C GOTO PAGE.004
KEY X QUIT
- PAGE.002 Option A
...
The screens are brought in, checked, and combined at compilation time (see this
option).
Press ^C1X^C0 or ^C1Esc^C0 to go back.
./
- *003 Compilation vs viewing
KEY X,(ESC) POP KEY3
/.
^C1Compilation vs Viewing
The DEMO System consists of two programs.
The ^C2compiler^C0 (DEMOMAKE) reviews your control card file for syntax errors.
It tokenizes what it can. It then reads all of your text screens and searches
for control codes in that file. At the end of this process, the program takes
all of your files including the control card file and creates a single data file
which is then concatenated to the end of the actual The DEMO System viewer.
The combined ^C2viewer^C0/data program is what you give your customers. They
can't tamper with the screens at all.
The shareware fee is required for the use of the compiler, not the viewer. As a
result, you can distribute the results of your compilations to anyone without
charge.
Press ^C1X^C0 or ^C1Esc^C0 to go back.
./
- *004 Full-screen features
SET CURSOR ^C2(^T10)
SET MOUSE ON
KEY (MOUSER),(MOUSEL) SELECT
KEY (HOME) FIELD FIRST
KEY (UP) FIELD -3
KEY (DOWN) FIELD +3
KEY (LEFT) FIELD -1
KEY (RIGHT) FIELD +1
KEY (END) FIELD LAST
KEY A,@1 CALL @SELECT A
KEY F,@2 CALL *004A
KEY K,@3 CALL @SELECT K
KEY B,@4 CALL @SELECT B
KEY G,@5 CALL @SELECT G
KEY L,@6 CALL @SELECT L
KEY C,@7 CALL @SELECT C
KEY H,@8 CALL @SELECT H
KEY M,@9 CALL @SELF_RUN
KEY D,@10 CALL @SELECT D
KEY I,@11 CALL @SELECT I
KEY E,@13 CALL @SELECT E
KEY J,@14 CALL @SELECT J
KEY X,@15 POP KEY4
KEY (ESC) NONE
/.
This is an example of what you can do with The DEMO System's full-screen
selections. You can have the program branch according to the choices selected.
Select an option using either cursor keys or the letter of the option. Option F
demonstrates how a data entry form might look. Option M is an example of a
self-running demo which demos a system where you'd want to press a series of
keystrokes for them.
^K Option A ^K Data Form ^K Option K
^K Option B ^K Option G ^K Option L
^K Option C ^K Option H ^K SelfRunM
^K Option D ^K Option I ^K
^K Option E ^K Option J ^K E^C1X^C0it
^C2 ^C2
^C2 Notice that the Esc key doesn't work in this screen. You can ^C2
^C2 enable or disable any keys as desired. ^C2
^C2 ^C2
./
- *004A Data-entry form
; Note that the first character of each field is automatically converted
; to uppercase for them. As it is, the %Proper% function fixes up most
; fields before writing out the record.
@ ^UName^ "!25X" LEN=5
@ ^UCompany^ "!25X"
@ ^UStreet1^ "!25X" LEN=5
@ ^UStreet2^ "!25X"
@ ^UCity^ "!19X"
@ ^UState^ "!!" LEN=2
@ ^UZip^ "NNNNN-NNNN" /* Because of pattern, ZIP will be minimum of 6 chars
/* Could have imposed a TEST clause if you wanted.
@ ^UPhone^ "(NNN) NNN-NNNN" LEN=14
@ ^USubmit^ "!" QUIT=S DEF=E TEST=%Instr%(^USubmit^,SE) <> 0
ASSIGN ^UName^ = %Proper%(^UName^)
ASSIGN ^UCompany^ = %Proper%(^UCompany^)
ASSIGN ^UStreet1^ = %Proper%(^UStreet1^)
ASSIGN ^UStreet2^ = %Proper%(^UStreet2^)
ASSIGN ^UCity^ = %Proper%(^UCity^)
; Note that the trailing blanks are always removed from responses in data-
; entry forms so you can do something like "^UCity^, ^UState^ ^UZip^" and it
; will show up correctly as "Silver Spring, MD 20910".
WRITE TEST.PRN "^UName^","^UCompany^","^UStreet1^","^UStreet2^","^UCity^, ^UState^ ^UZip^","^UPhone^"
/.
Address entry form
^C2 ^C0
^C2 This example prompts you to enter someone's name, address, and phone ^C0
^C2 information. Use Tab and shift-Tab to shift between fields. Use ^C0
^C2 Alt-F1 to see the required patterns. When you opt to Submit the ^C0
^C2 entry, the form entries will be saved in an ASCII-delimited format ^C0
^C2 under the file name TEST.PRN. ^C0
^C2 ^C0
^C2 Note that the user name and the first line of the street address ^C0
^C2 have to be at least 5 characters in length, and the State and phone ^C0
^C2 number have to be completely filled out. This is user defined. ^C0
^C2 ^C0
User name: ^K
Company: ^K
Street: ^K
^K
City, State ZIP: ^K , ^K ^K
Phone: ^K
Submit?: ^K (S=submit, E=continue editing)
./
POP
- *005 DOS functions
SET KEYS (SET1)
SET SETTINGS (SET1)
SET CURSOR ^C3(^T1)
SET MOUSE ON
KEY (MOUSER),(MOUSEL) SELECT
KEY 1,@1 CALL @DOS %Dir%
KEY 2,@2 CALL @WRITE
KEY 3,@3 CALL @PLAY
KEY 4,@4 CALL @PROMPT
KEY 5,@5 CALL @SAVE
KEY L,@6 CALL *005A
KEY X,@7,(ESC) POP KEY5
/.
The DEMO System provides direct access to all sorts of DOS functions within your
control card files. You can use RUN commands to get anything not supported.
Some examples are provided below:
^K^C11^C0. (DOS) You can do any (small) DOS function you need to do or go to the
DOS shell itself. Bigger functions can be done with batch files that
notice whether The DEMO System has created a given batch file to be run.
^K^C12^C0. (WRITE) and (DELETE) You can write lines to a text file (e.g. a batch
file) if you want to.
^K^C13^C0. (PLAY) You can add PLAY commands to your files. This can simulate
modem dialing or be used to alert people to errors or whatever.
^K^C14^C0. (PROMPT) You can prompt a user for information.
^K^C15^C0. (SAVE) You can save the screen to a file.
^K^C1L^C0. List all available DOS and other action commands.
^K^C1X^C0. Return to previous menu
./
- *005A List of DOS and other action commands.
KEY X,(ESC) POP KEY6
/.
The following lists most of the action commands that are in The DEMO System.
(The list excludes several "alternate screen" commands.) Remember that anything
that's not here can be done using the RUN option.
ASSIGN var = value MD directory
BEEP MSGBOX type message
BUFFER chars PAUSE [ seconds ]
CALL screen [ KEYn | parms ] PAUSE BREAK { ON | OFF }
CD directory PAUSE DEMO seconds
CDD drive:\directory PLAY string
CLS PLAY { ON | OFF }
COPY file1 file2 POP [ TOP | 1 to 20 | KEYn ]
DELETE file PROMPT var "pattern" misc_parms
DISPLAY { MONO | COLOR | TOGGLE } QUIT [ return_code ]
DRIVE letter RD directory
DROP location REDRAW
ECHO [ string[@] ] RUN [ string ]
FIELD change SAVE filename
GOTO screen [ KEYn | CLEAR | parms ] SCREEN change [ parms ]
HOP location SELECT
KEYPRESS WRITE filename string
LOADLOGO ... @ var "pattern" misc_parms
LOCATE row col
Press ^C1X^C0 or ^C1Esc^C0 to go back.
./
- *006 Environmental variables
KEY X,(ESC) POP KEY6
KEY F GOTO *006A
/.
^C1Variables
The DEMO System recognizes four different types of variables:
^C1DOS-defined environmental variables^C0: These are set within the DOS
environment. These settings can be read (but not reset) by The DEMO System.
For example, your DOS prompt is: ^C1^EPROMPT^
^C1User-defined variables^C0: These are variables that are established by you,
the user. The values of these variables can be set (by the ASSIGN command), or
displayed in ECHO statements or in screens. These also include variables that
are passed when you call one screen from another screen.
^C1Macro variables^C0: These are variables that are passed into macros.
^C1Compiler variables^C0: These are variables passed in on the DEMOMAKE
command line. These variables can invoke macros or whatever at compilation
time.
In addition, The DEMO System provides an extensive list of ^C1functions^C0 that you
can use in your programs.
Press ^C1F^C0 to see a list of functions, or ^C1Q^C0 or ^C1Esc^C0 to go back.
./
- *006A Functions
KEY X,(ESC) POP KEY6
/.
^C1System-defined Functions
The DEMO System provides a wealth of functions approaching the depth of many
computer language products. While we don't have room to describe all of the
functions available (see the reference manuals), you can use all of the
following in your programs:
%^_Add%(n,n) %^_DriveDirOrig% %^_Instr%(s,s) %^_PathExist%(s)
%^_Col% %^_DriveDirSlash%(c) %^_Instr2%(n,s,s) %^_PrinterReady%(n)
%^_Date% %^_DriveLabel%(c) %^_Left%(s,n) %^_ReplaceStr%(s,s,s)
%^_DateOrig% %^_DriveOrig% %^_Len%(s) %^_Right%(s,n)
%^_DateR2S%(n) %^_DriveSpace%(c) %^_Lower%(s) %^_Row%
%^_DateS2R%(s) %^_FieldMax% %^_Mid%(s,n,n) %^_Sub%(n,n)
%^_DateValid%(s) %^_FieldNum% %^_Mouse% %^_Time%
%^_Dir% %^_FileMakeTest%(s) %^_Mult%(n,n) %^_TimeElapsed%
%^_Display% %^_FileDate%(s) %^_PageDesc% %^_TimeOrig%
%^_DisplayEGA% %^_FileExist%(s) %^_PageLines% %^_TimeR2S%(n)
%^_DisplayNum% %^_FileOrig% %^_PageMax% %^_TimeS2R%(s)
%^_DisplayVGA% %^_FileOrigDir% %^_PageName% %^_Trim%(s)
%^_Div%(n,n) %^_FileSize%(s) %^_PageNum% %^_Upper%(s)
%^_Drive%(c) %^_FileTime%(s) %^_PathCanMake%(s) %^_Weekday%(s)
%^_DriveCur% %^_FileValid%(s)
%^_DriveDir%(c) %^_FreeEMS%
Press ^C1X^C0 or ^C1Esc^C0 to go back.
./
- *007 SET commands
KEY X,(ESC) POP KEY7
/.
^C1SET commands
The DEMO System provides the ability to set certain conditions and defaults at
compilation time. These can be set for single screens, a series of screens, or
all screens. They include:
SET BASE n Sets the default color parameter for the screen
SET CASE { ON | OFF } Whether input case matters
SET CLS { ON | OFF } Whether to clear the screen before display
SET COLOR settings What colors to use if a color monitor is detected
SET CURSOR string What cursor to use for each prompt
SET KEYS CLEAR Clears previously defined key assignments
SET KEYS SETn Sets screen's keys to match some template
SET LOGO string Any text you want displayed on every screen?
SET MONO settings What colors to use if a monochrome monitor is
used (or simply to provide an alternative color set)
SET MOUSE { ON | OFF } Activates mouse support. Useful for full-screen apps.
SET SETTINGS CLEAR Reinitializes screen's default settings
SET SETTINGS SETn Sets screen's other settings to match some template
SET TOP screen Determine the maximum screen that a use can pop
back to
Press ^C1X^C0 or ^C1Esc^C0 to go back.
./
- *008 Reviewing the screen colors
KEY X,(ESC) POP KEY8
/.
Reviewing the screen colors
The following color sets are set by default in The DEMO System. You can switch
between the color and monochrome settings by using Alt-C (color) and Alt-M
(monochrome).
^C0 This is color set 0
^C1 This is color set 1
^C2 This is color set 2
^C3 This is color set 3
^C4 This is color set 4
^C5 This is color set 5
^C6 This is color set 6
^C7 This is color set 7
Press ^C1X^C0 or ^C1Esc^C0 to go back.
./
- *009 Other stuff
SET CLS OFF
KEY (ESC),(ELSE) POP KEY9
/.
^C2 ╔══════════════════════════════════════════════════════════════════════╗ ^C0
^C2 ║ Another screen. Notice it didn't clear the old one first? ║ ^C0
^C2 ╟──────────────────────────────────────────────────────────────────────╢ ^C0
^C2 ║ Just wanted to show you that! Press a key please. ║ ^C0
^C2 ╚══════════════════════════════════════════════════════════════════════╝ ^C0
./
/* ---------------------------- labels ----------------------------------------
- @COLOR Switching display to color set
DISPLAY COLOR
POP
- @DOS Demonstrating some DOS functions
LOCATE 15 1
ECHOA We're about to hop into DOS and do a DIR command.
ECHOA Note that we could have cleared the screen this time but we didn't.
ECHOA Also note that it's going to a different screen. Ready?
RUNA DIR *.EXE /W
ECHOA Press a key please
PAUSEA
ECHO ^P20,1We're back! Now we hop into DOS itself. Say ^C1EXIT^C0 to return.
RUN
ECHO We're about to copy your AUTOEXEC.BAT file as KILLME.NOW
ECHO Note that you can have the cursor stay in place@
RUN COPY C:\AUTOEXEC.BAT C:\KILLME.NOW
ECHO We're back! Press a key when ready to continue.
PAUSE
ECHO Let's try some of the directory commands. Creating directory #T#
MD %DriveDirOrig%\#T#
CD %DriveDirOrig%\#T#
ECHO Now running DIR. Note your subdirectory name:
RUN DIR
ECHO Now resetting the directory back to %DriveDirOrig%
CD %DriveDirOrig%
RD %DriveDirOrig%\#T#
ECHO Just removed #T#. Press a key
PAUSE
POP
- @GRAPHIC Loading a graphic file
/* Note that none of The DEMO System options while you're
/* in another program.
RUN TSHOW WAYNESOF.GIF /* TSHOW is one of those freebie GIF viewers
/* Have to reload the symbol because the program probably screwed it
/* up.
LOADLOGO CLEAR
LOADLOGO ^UBatSymbol^ 3
DATA 221,0,24,28,60,62,63,127,127,127,255,255,255,239,206,132,128
DATA 222,66,126,126,126,126,255,255,255,255,255,255,255,255,126,60,24
DATA 224,0,24,56,60,124,252,254,254,254,255,255,255,247,115,33,1
POP
- @MONO Switching display to Monochrome
DISPLAY MONO
POP
- @PLAY Seeing how the PLAY commands work
CLS
ECHO Let's try some play command stuff. Testing...
PLAY mb t180 o2 p2 p8 l8 ggg l2 e- p24 p8 l8 fff l2 d
ECHO That should still be playing. Press a key when ready.
PAUSE
POP
- @PROMPT Testing the various PROMPT options
/* Prompting the user for input.
CLS
ECHO Okay. Let's prompt for something.
ECHO The pattern here is "NNNUU" -- three digits, and two letters
ECHO ^C2Enter your user ID? @
PROMPT ^UUserID^ "NNNUU" LEN=5
ECHO ^C0
ECHO The result is ^UUserID^
ECHO The next one uses the pattern "XXX-UUU-BBB" -- B must be Y/N/T/F
ECHO ^C2Enter another one? @
PROMPT ^UAnother^ "XXX-UUU-BBB"
ECHO ^C0
ECHO The result was ^UAnother^
ECHO The next one uses the pattern "NN/NN/NN" and must be a date field
ECHO ^C2Enter a date? @
PROMPT ^UDate^ "NN/NN/NN" TEST=%DateValid%(^UDate^) = 1
ECHO ^C0
ECHO The result was ^UDate^
ECHO The next one requires a valid filespec (existing or not)
ECHO ^C2Enter a filespec? @
PROMPT ^UFileSpec^ "50!" TEST=%FileValid%(^UFileSpec^) <> (NULL)
ECHO ^C0
ECHO The result was ^UFileSpec^
ECHO The next one requires an existing filespec
ECHO ^C2Enter an existing filename? @
PROMPT ^UX^ "50!" TEST=%FileExist%(^UX^) = 1
ECHO ^C0
ECHO The result was ^UX^
ECHO The next one requires a valid drive and tells you the default path on it
ECHO ^C2Enter a drive? @
PROMPT ^UX^ "!" TEST=%Drive%(^UX^) = 1 DEF=C
ECHO ^C0
ECHO The result was ^UX^ and default path there is %DriveDir%(^UX^)
ECHO Press a key please
PAUSE
POP
- @QUIT Quitting
LOADLOGO CLEAR
ECHO ^C0
CLS
ECHO Thanks for your interest in The DEMO System
QUIT 5 /* Setting the return code to 5
- @SAVE Saving the current screen some place
ECHO ^P20,1You can use device names instead of file names if you want.
ECHO ^C2Save screen under what DOS file name? @
PROMPT ^UName^ "50!" TEST=%FileValid%(^UName^) <> (NULL)
SAVE ^UNAME^
POP
- @SELECT Common subroutine showing what option you picked
ECHO ^P20,1You selected the %1% option at %Time%. Press a key now.
PAUSE
POP
- @SELF_RUN Self-running demo example
ECHO ^P24,1Showing a self-running demo@
PAUSE 1
PAUSE DEMO 0.4
PAUSE BREAK OFF
BUFFER (HOME)
BUFFER (RIGHT)(RIGHT)(RIGHT)(RIGHT)
ECHO ^P25,1Hopping around still...@
BUFFER (UP)(LEFT)(LEFT)(ENTER)
PLAY mb t180 o2 p2 p8 l8 ggg l2 e- p24 p8 l8 fff l2 d
PAUSE BREAK ON
ECHO ^P24,1Feel free to press Esc to stop this@
BUFFER (UP)(UP)(UP)(UP)(UP)(UP)(UP)(UP)(UP)(UP)(UP)
REDRAW
POP
- @WRITE Showing how the write functions work
CLS
ECHO We're writing something to a file called C:\KILLME.NOW
ECHO It includes environmental variables for Time, Date, and your system PROMPT
DELETE C:\KILLME.NOW
WRITE C:\KILLME.NOW This is the first line
WRITE C:\KILLME.NOW And the second
WRITE C:\KILLME.NOW Current date: %Date%
WRITE C:\KILLME.NOW Current time: %Time%
WRITE C:\KILLME.NOW Elapsed time: %TimeElapsed%
WRITE C:\KILLME.NOW Directory on C: %DriveDir%(c)
WRITE C:\KILLME.NOW C:\AUTOEXEC.BAT found: %FileExist%(C:\AUTOEXEC.BAT)
WRITE C:\KILLME.NOW Your system PROMPT: ^EPROMPT^
ECHO Now let's see what the file looks like.
RUN TYPE C:\KILLME.NOW
ECHO Press a key when ready.
PAUSE
POP