home *** CD-ROM | disk | FTP | other *** search
/ Fish 'n' More 1 / FishNMoreVol1.bin / more / disks / better_pd / utilities_1 / docs / ask.doc < prev    next >
Encoding:
Text File  |  1986-09-20  |  2.3 KB  |  54 lines

  1. ASK Version 1.1 - January 7, 1987 - ©1987 Sean Riddle
  2. Oklahoma City Amiga Computer Enthusiasts BBS: (405) 631-9040
  3.  
  4. Usage: ASK <default> <time> <prompts>.
  5.  
  6. ASK is a public domain utility program that gets Y/N input from the keyboard
  7. within a certain time limit and returns either 0 (for Y) or 5.  This return
  8. value can be used from within an EXECUTE'd sequence file to control flow.
  9. Version 1.1 of ASK supports a selectable timeout value (from 1-60 seconds,
  10. or infinite), a timeout default of either Y or N, and is much smaller than
  11. the older ASK (this one's about 4K.)  You can invoke ASK directly from the
  12. CLI, although it has limited use.  A better way to use ASK is from within a
  13. sequence file, such as startup-sequence.  For instance, to see if the user
  14. would like a listing of the current directory, you could use this:
  15.  
  16. ASK Y 10 Do you want a directory?
  17. IF WARN
  18.    SKIP no
  19. ENDIF
  20. dir
  21. LAB no
  22.  
  23. What this does is print the string "Do you want a directory? ".  Then ASK
  24. waits for 10 seconds.  If you input Y, ASK returns a 0 and the directory is
  25. output.  If you input N, ASK returns a 5, which is a WARNing error, causing
  26. the sequence to SKIP to the LABel no.  If you do not type anything before
  27. the 10 second time limit expires, ASK will default to Y, and return a 0.
  28. Note that either upper- or lower-case may be entered, you must hit return
  29. after Y or N, and that any extra characters on the line will be ignored.  If
  30. you input characters other than Y or N, the program will reset the time
  31. limit and complain.
  32.  
  33. You can use ASK in the startup-sequence to ask you if you want a RAM disk or
  34. not; if you want Workbench or the CLI to come up; if you want your 5 1/4"
  35. drive to be mounted or not.
  36.  
  37. Look at the AmigaDOS User's Manual at the EXECUTE, IF, SKIP, and LAB
  38. commands.
  39.  
  40. This code represents quite a little bit of time I spent programming and
  41. debugging.  I don't mind you modifying the code, but please leave in my
  42. information.  I'd also like you to upload the new code and source to the OKC
  43. ACE BBS (number above).  Please give this code to everyone, upload it on
  44. every BBS, send it everywhere.  What good is it if nobody uses it?  Lastly,
  45. if you really like the program or use it a lot, please send a small donation
  46. to help me pay for my Amiga.
  47.  
  48. Thanks-
  49. Sean Riddle
  50. 2636 Manchester Drive
  51. OKC, OK  73120-3313
  52.  
  53.  
  54.