home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Black Box 4
/
BlackBox.cdr
/
editors
/
hypsh40b.arj
/
HYPDEVEL.LZH
/
ZONE.HYP
< prev
Wrap
Text File
|
1991-04-24
|
3KB
|
167 lines
.REMARK
Build zone menu for graphics
.NOTE Selecting zone
Press a key to display picture
- when it appears -
Select the top left by pressing
RETURN or LEFT mouse button
- then, after the bell -
Select the bottom right in the
same way.
.
.NOTE Run picture
Press a key to display picture
- when it appears -
Select a zone by pressing
RETURN or LEFT mouse button
or press a mapped key
The action string will be shown
for 2 seconds, then the picture
will be shown again. Press a key
during the action display to
cancel the Run Picture script
.
.NOTE Zone details
Key mapping = '$i'
Top Left = $X,$Y
Bottom Right = $J,$K
Action string = $z
╔══════════╗ ┌──────────┐
║ ~A OK ~P~Ko~E ║ │ ~A CANCEL ~PY~Kc~E │
╚══════════╝ └──────────┘
.
.NOTE Confirm
$\
╔══════════╗ ┌──────────┐
║ ~A YES ~P~Ky~E ║ │ ~A NO ~PY~Kn~E │
╚══════════╝ └──────────┘
.
.SCRIPT SETUP
O#
VBPIC
Vb&C124
VM&R21
vM1;aeO*M1
.
.FRAME Main Menu
.TITLE Graphics selection zones
This hyperfile allows you to build a menu of selection zones for
a graphics image file.
~hM~Tw You have not used direct mouse mode. This is required if you
~hM want to set up or run graphic screens. You should NOT use the -m
~hM flag on the command line. Just use "hs zone". If you have not
~hM used -m, then you don't have a compatible mouse driver.
~hM~TW
[i] ~FInstructions~Ki~E
[x] ~sSelect picture file extension~Psselext~Kx~E $B
[s] ~sSelect picture~Psselect~Ks~E $p -> $f
[g] ~sCreate menu for graphic screen~PO*T;screate~Kg~E
[t] ~sCreate menu for text screen~PO*T1;screate~Kt~E
[r] ~sRun picture~Psrunpic~Kr~E
[q] ~AQuit~PQ~Kq~E
.
.SCRIPT select
Vp@d*.$B
Vf
y
.
.SCRIPT selext
VA@mExtensions
jrSETIT
VA?Enter extension (without '.')
abq
LSETIT
VB$A
y
.MENU Extensions
PIC
PCX
PCC
P*
Specify|
.SCRIPT create
vp;auq
Y
LASKNAME
Vf?Filename for menu
vf;juASKNAME
w$f
LSTRT
NSelecting zone
g$p
VX&X;VY&Y
ZB
Zg
VJ&X;VK&Y
g
y#
JHK
LERR
pMapped key must be printable character or space
LHK
Vi&KHit key to map to zone
vi ;jlERR
vi};jgERR
Vz?Enter zone action string
Vx=X+32;Vx&C$x
Vy=Y+32;Vy&C$y
Vj=J+32;Vj&C$j
Vk=K+32;Vk&C$k
Y@NZone details
jrANYMORE
W$i$x$y$j$k$b$z
LANYMORE
Y@NConfirm(Any more zones)
jbSTRT
Vc?Default action
jbCLOSE
W*....$b$c
LCLOSE
w
y
pMenu file created
.
.SCRIPT runpic
vf;jdRUNPIC
LASKNAME
Vf?Filename for menu
vf;juASKNAME
LRUNPIC
NRun picture
LAGAIN
zTG$p
aTg$p
p@F$f[@]
Y&G200
jbAGAIN
g;y
.
.FRAME Instructions
.TITLE How to use this hyperfile
First you need to select a picture file to build the selection
menu for. You use the 'select option on the main menu for this.
To create selection menus, select the 'create' option from the
main menu. This will ask for a file name for the menu first,
then will ask you to mark the top left and bottom right corners
of each zone, along the key to be mapped to the zone and the
action string to be mapped to the zone.
After you have created the menu, you can try out the zone
selections using the 'run' option on the main menu.
[m] ~FMain menu~Km~E
.