home *** CD-ROM | disk | FTP | other *** search
/ Club Amiga de Montreal - CAM / CAM_CD_1.iso / files / 487.lha / ButtonAsk / ReadMe < prev    next >
Encoding:
Text File  |  1991-03-11  |  1.1 KB  |  36 lines

  1. BUTTONASK
  2. ---------
  3.  
  4.   ButtonAsk is a replacement for the AmigaDOS ASK command. It takes a prompt
  5. string from the command line, echos it to standard output, and waits for
  6. either the left or right mouse button to be pressed. The program will then
  7. send a return code of either 5(WARN) or 0 to the system which can be
  8. interpreted by using the IF command. This program is mainly used in scripts.
  9.  
  10. EXAMPLE:
  11.  
  12.     BUTTONASK Press a mouse button
  13.     IF WARN
  14.       ECHO "Hello"
  15.     ELSE
  16.       ECHO "GoodBye"
  17.     ENDIF
  18.  
  19.    This script will print out the message "Press a mouse button", and then
  20. wait for mouse button to be pressed. Then either the Hello or GoodBye 
  21. message will be output depending which button was pressed. See the source
  22. file for more details
  23.  
  24. WAITBUTTONS
  25. -----------
  26.  
  27.   This is a small program which is used to detect when no mouse buttons are
  28. down. If you intend to use buttonask more than once in the same script then
  29. you should use this command to check that a button is not already down 
  30. before calling buttonask.
  31.  
  32. DISTRIBUTION:
  33.  
  34.   ButtonAsk is copyright 1990 Chris Simpson but may be distributed in any
  35. way as long as this file, WaitButtons, and both source files are included.
  36.