home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Black Box 4
/
BlackBox.cdr
/
editors
/
hsevlsfx.exe
/
HOME.HYP
< prev
next >
Wrap
Text File
|
1992-04-19
|
7KB
|
294 lines
.HEADER
~M~TwF~TKile~Kf~E│~M~TwO~TKptions~Ko~E│~M~TwH~TKelp~Kh~E│~AHISTORY $6~C33~Pb@B~E│ $1 - $2
═════╧═══════╧════╧═════════════╧════════════════════════════════════════
.FOOTER
~L22
═══════════════════════════════════════════════════════════════════════════════
F1 ~AHELP~PMHelp~E F2 ~ACONTENTS~PA@C~E F3/4 ~ABACKTRACK~PB~E F5 ~ANOTEPAD~PA@R~E F6 ~ASEARCH~PA@X?Search string~E F7 ~ATYPE FILE~PT$_~E F10 ~AQUIT~PQ~E
.REMARK
Demo hyperfile - browser
Copyright (c) 1991 N.G.Taylor
.
.CHECK +fa
Check both menu types
.
.REMARK
Various menus, showing menu option text on left and action on right
.
.MENU File
Directory |Y@d*.*
Change dir. |C@L*.
Browse dir. |SBrowse
Quit |Q
.
.MENU Options
Create notepad |O01;pO.K.
No backtrack |O20
Backtrack on |O21
Disable warnings |O80
Warnings on |O83
.
.MENU Help
Information |NInfo
Selecting |NSelecting
Funct. keys |NFkeys
.
.SCRIPT MENBAR
ZX2;ZY1
.
.REMARK
Add extension of file, followed by action to perform for that file.
The variable $< contains the full file name
The actions 'L' below are dummy actions for extensions for which
no action is required. Default action is to display the file as text.
Directories, .TXT and .BAT files are handled in the BROWSE script below.
Additional special cases can be added there as required.
.
.MENU extns
OBJ|L
LIB|L
DBF|L
SYS|L
EXE|Nexec
COM|Nexec
PIC|G$<
PCX|G$<
HYP|dHS $<
NTE|t$<
HSF|c$<
MNU|A@F$<
*|T$<
.
.REMARK
This is a menu of things which can be done to directories.
.
.MENU Directory
Change to|C$<
Show |DDIR/W $<
.
.REMARK
This is a menu for options on files with extension .TXT or .BAT
.
.MENU Text File
Type |T$<
Edit |dHN $<
.
.REMARK
general purpose confirm note:-
call using parameter e.g.:-
NConfirm(Delete file)
Sets flag C if OK selected, else clears it.
.
.NOTE Confirm
$\
┌──────────┐ ┌──────────┐
│ ~A OK ~PO*C1~Ko~E │ │ ~A CANCEL ~PO*C~Kc~E │
└──────────┘ └──────────┘
.
.NOTE Info
- $9 -
Frame: $1
Title: $2
File : $3
Date : $4
Time : $5
~ABacktrack ~O2 ~PO2A;NInfo~E with $6 entries
~AAutoref ~O4 ~PO4A;NInfo~E
Error status $? ~C32~AClear~PYah;NInfo~E
.
.NOTE Selecting
Press LEFT button to select item
Press RIGHT mousebutton to select
menu bar. Use TAB to move to next
reference, Shift TAB for previous
.
.NOTE Browser
This is a sample directory browser
Select directories to move around.
Select text files to type them.
.
.NOTE exec
An action could be
added to execute the
selected program.
.
.NOTE Fkeys
F1 Help F2 Browse
F3 Backtrack F4 Select back
F5 Notepad actions F6 Search text
F7 Type file F8 Do action
F9 DOS Shell F10 Quit
.
.REMARK
Directory browser with actions depending on file type.
See also MENU 'extns' above.
.
.SCRIPT Browse
-- Display note about it
NBrowser
-- display directory list
Lpd;Y@L*.*
-- loop back if error set
jspd
-- jump depending on extension of selected file
J$>
-- by default, use lookup menu to find action to take
A@Mextns[$>];Jpd
-- no extension - assume directory
L
L.
A@Mdirectory;Jpd
-- various text files
LTXT
LBAT
LC
A@MText File;Jpd
.
.SCRIPT SETUP
O#
-- show menu symbols + use first letter + immediate menus
O17
-- text as grey on black
OTWB
-- F1 is for help menu
KF1MHelp
KM1HELP
-- Escape key selects MENBAR script
KH4SMENBAR
-- Various variables for funny characters
Vt°
Vd$
-- defaults
Vsfirst
VxDog
VnFrodo
.
.FRAME Home frame
.TITLE HyperShell evaluation disk
[1] ~AView READ.ME file~PTREAD.ME~K1~E
[2] ~AView introduction~PdHS HS~K2~E
[3] ~AView reference file~PdHS HSREF~K3~E
[4] ~AView graphic file~PGmouse.pcx~K4~E
[5] ~AAddress book database~PdHS ADDRBOOK~K5~E
********* THIS NEEDS AT LEAST 10K FREE SPACE ON DISK **********
[6] ~AEnvironment introduction~PdHI EDINTRO~K6~E
********* THIS NEEDS AT LEAST 50K FREE SPACE ON DISK **********
[9] ~AQuit~PQ~K9~E
^----- Press number key to select
.
.FRAME Browser
.TITLE DOS directory structure browser
This option provides a simple MSDOS directory structure browser.
[1] Press This to browse -> ~SBrowse~K1~E
[2] This hyperfile contains a number of ~Fuseful items~K2~E for
authors to include in their own hyperfiles
[3] Also some handy ~FGadgets~K3~E are provided for authors
.
.FRAME useful items
.TITLE items for authors to use
A number of useful items are provided in this hyperfile.
An error number menu provides a useful means of getting the
text associated with an error status. The action
p@MError text($$?)
Will display the error text associated with the last error.
The .HEADER demonstrates how a simple menu bar can be set up.
The Info note shows how options can be toggled
.
.FRAME Gadgets
.TITLE Useful accessories for hyperfiles
[1] ~nThe confirm box~Psconf(feed $x)~K1~E
[2] The selector - ~n$x~PVx@mselector;y~K2~E
[3] The stepper - ~n$s~PVs@mstepper[$s];y~K3~E
[4] The dialogue box - ~nName input~Pndialogue;y~K4~E {$n}
[5] ~FDescription~K5~E - Details about gadgets
.
.MENU selector
Dog
Cat
Hamster
Goldfish
Rabbit
Mouse
Elephant
.
.SCRIPT conf
-- get confirm response in flag C
A@NConfirm
-- if C not set
zCp$n the $x growls menacingly
-- if C set
aCp$n the $x purrs gratefully
.
.REMARK
wrapping menu as stepper
.
.MENU stepper
first|second
second|third
third|fourth
fourth|fifth
fifth|sixth
sixth|seventh
seventh|eighth
eighth|ninth
ninth|first
.
.REMARK
simple dialogue box for name input
.
.NOTE dialogue
Enter the name of your $x here
Name: ~I$n~W20~PVn%s;y~E~Q
.
.FRAME description
.TITLE details about gadgets
~A~PP;B~E~Q ~HThis is used for immediate return after confirmation
The confirm box is useful for confirming an action before it
is executed, in cases where some irreversible action is to
take place. e.g. a file is to be deleted. The confirm box can
be extended to any number of options.
The selector presents a menu from which a new value for a
variable can be chosen. The variable can be used as the
reference text to show the current value.
The stepper is similar to the selector, only allows the set
of values to be stepped through one at a time.
The dialogue box is used to input a string from the user. It
is similar to the prompted input action, but it permits extra
information to be displayed around the input field, such as
the values of other variables
.
.REMARK
end of hyperfile
.