home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Club Amiga de Montreal - CAM
/
CAM_CD_1.iso
/
files
/
458.lha
/
CustReq_v4
/
CustReq.doc
< prev
next >
Wrap
Text File
|
1990-12-31
|
3KB
|
60 lines
CustReq v4 (c) Copyright 1990 by Jonathan Potter
USAGE : CustReq "text" "pos" "neg"
[-d default] [-t timeout] [-x xpos] [-y ypos]
"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
xpos - optional x position of window
ypos - optional y position of window
CustReq is a glorified ASK command for your startup-sequence.
All strings must be in quotes if they contain any spaces. To make the "text"
string more than one line long, use a | character to specify the end of a
line.
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. The -x and -y flags override
this function. To force the requester to appear with the positive gadget
under the mouse, use -x -2. To make it appear with the negative gadget under
the mouse, use -x -3. To make it appear in the center of the screen, use
-x -4.
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. The Y key has the same effect as the positive gadget,
and the N key has the same effect as the negative gadget. You can also press
the key corresponding to the first letter of the desired gadget.
An example usage of CustReq is:
CustReq "Do you want to load Workbench?|If you select Load, Workbench will
be loaded.|If you select Don't Load, you will be|left with a CLI window."
"Load" "Don't load" -d 1 -t 5
If WARN
LoadWb
Echo "Workbench loaded"
EndIf
This program is not public domain, but may be distributed freely.
Jonathan Potter
P.O. Box 289
Goodwood
SA 5034
Australia
(08) 293 2788
------------------------------------------------------------------------------
v4 changes from v3
Requester looks a lot nicer, and works well under 2.0
Also, hailing text is gone.
------------------------------------------------------------------------------