home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Club Amiga de Montreal - CAM
/
CAM_CD_1.iso
/
files
/
298.lha
/
CustReq
/
CustReq.doc
< prev
next >
Wrap
Text File
|
1980-12-01
|
1KB
|
35 lines
CustReq v2 (c) Copyright 1989 by Jonathan Potter
USAGE : CustReq "hailtext" "text" "pos" "neg" [default] [timeout]
"hailtext" - title text of requester
"text" - text of requester
"pos" - positive option of requester
"neg" - negative option of requester
default - optional default value, either 1 (YES) or 0 (NO)
timeout - optional timeout value in seconds
CustReq is a glorified ASK command for your startup-sequence.
All strings must be in quotes if they contain any spaces.
If a default of 1 is given, the requester will (try to) appear with the
positive gadget under the mouse. If a default of 0 is given, it
will (try to) appear with the negative gadget under the mouse.
If a timeout is given, the requester will timeout and return the default
value after the specified time.
If the positive option is chosen, a returncode of 5 (WARN) is generated,
otherwise 0 is generated.
An example usage of CustReq is:
CustReq "My Request" "Do you want to load Workbench" "Load" "Don't load" 1 5
If WARN
LoadWb
Echo "Workbench loaded"
EndIf
Jonathan Potter
3 William Street
Clarence Park
SA 5034
Australia
(08) 293 2788