home *** CD-ROM | disk | FTP | other *** search
-
- Choose v1.0
-
- Copyright 1989 © by Gianluca Attura
-
- NAME
- Choose - execute an AmigaDos command choosen by input or
- by default on timeout condition.
-
- SYNOPSIS
- Choose "Message" "1st Command (default)" "answer"
- "2nd Command" "answer" [ Delay (>0) ]
-
- INPUTS
- "Message" = string with a quick remainder.
- "1st Command" = first command name and parameters.
- "2nd Command" = second command name and parameters.
- "answer" = answer strings relative to commands.
- Delay = delay in seconds.
-
- FUNCTION
- Solves the problem to start from the startup-sequence one
- task or to choose between two different tasks, without
- arresting totally its execution, by checking the answers
- in a limited time interval.
- If no adequate answers are given, spent the number of seconds
- specified by Delay after last input (or even if no input is
- given), the first command is executed by default.
- Instead, if a right answer is input, Choose executes the
- relative command immediatly.
- If no Delay is specified, Choose will not execute commands
- without a right answer.
- It's possible to specify empty strings as commands or answers.
- In the first case this is useful to decide to execute or less
- one command - by setting to "" the "2nd Command".
- In the second one to specify <CR> as a possible answer.
- Quotation marks must be specified only in this case and if
- Message, Commands or answers are composed by more than one word
- (ie: command followed by parameters).
-
- BUGS
- None.
-
- NOTE
- This program is PD. No money is required for its use in a
- private way.
- It cannot be inserted in commercial softwares without the
- authorization of the author.
-
- Rome, 20 February 1989
-
- Gianluca Attura
-
-
- 23,Bargellini st.
- 00157 Rome
- Italy
-
-
-