home *** CD-ROM | disk | FTP | other *** search
/ Club Amiga de Montreal - CAM / CAM_CD_1.iso / files / 298.lha / CustReq / CustReq.doc < prev    next >
Text File  |  1980-12-01  |  1KB  |  35 lines

  1. CustReq v2 (c) Copyright 1989 by Jonathan Potter
  2.  
  3. USAGE : CustReq "hailtext" "text" "pos" "neg" [default] [timeout]
  4.  
  5.         "hailtext" - title text of requester
  6.         "text"     - text of requester
  7.         "pos"      - positive option of requester
  8.         "neg"      - negative option of requester
  9.         default    - optional default value, either 1 (YES) or 0 (NO)
  10.         timeout    - optional timeout value in seconds
  11.  
  12. CustReq is a glorified ASK command for your startup-sequence.
  13. All strings must be in quotes if they contain any spaces.
  14. If a default of 1 is given, the requester will (try to) appear with the
  15. positive gadget under the mouse. If a default of 0 is given, it
  16. will (try to) appear with the negative gadget under the mouse.
  17. If a timeout is given, the requester will timeout and return the default
  18. value after the specified time.
  19. If the positive option is chosen, a returncode of 5 (WARN) is generated,
  20. otherwise 0 is generated.
  21. An example usage of CustReq is:
  22.  
  23.   CustReq "My Request" "Do you want to load Workbench" "Load" "Don't load" 1 5
  24.   If WARN
  25.     LoadWb
  26.     Echo "Workbench loaded"
  27.   EndIf
  28.  
  29. Jonathan Potter
  30. 3 William Street
  31. Clarence Park
  32. SA 5034
  33. Australia
  34. (08) 293 2788
  35.