home *** CD-ROM | disk | FTP | other *** search
- BUTTONASK
- ---------
-
- ButtonAsk is a replacement for the AmigaDOS ASK command. It takes a prompt
- string from the command line, echos it to standard output, and waits for
- either the left or right mouse button to be pressed. The program will then
- send a return code of either 5(WARN) or 0 to the system which can be
- interpreted by using the IF command. This program is mainly used in scripts.
-
- EXAMPLE:
-
- BUTTONASK Press a mouse button
- IF WARN
- ECHO "Hello"
- ELSE
- ECHO "GoodBye"
- ENDIF
-
- This script will print out the message "Press a mouse button", and then
- wait for mouse button to be pressed. Then either the Hello or GoodBye
- message will be output depending which button was pressed. See the source
- file for more details
-
- WAITBUTTONS
- -----------
-
- This is a small program which is used to detect when no mouse buttons are
- down. If you intend to use buttonask more than once in the same script then
- you should use this command to check that a button is not already down
- before calling buttonask.
-
- DISTRIBUTION:
-
- ButtonAsk is copyright 1990 Chris Simpson but may be distributed in any
- way as long as this file, WaitButtons, and both source files are included.
-