home *** CD-ROM | disk | FTP | other *** search
/ Club Amiga de Montreal - CAM / CAM_CD_1.iso / files / 216.lha / choose.doc < prev    next >
Text File  |  1996-02-15  |  2KB  |  60 lines

  1.  
  2.                              Choose v1.0
  3.  
  4.                   Copyright 1989 © by Gianluca Attura
  5.  
  6.   NAME
  7.            Choose - execute an AmigaDos command choosen by input or
  8.                     by default on timeout condition.
  9.   
  10.   SYNOPSIS
  11.            Choose "Message" "1st Command (default)" "answer"
  12.                   "2nd Command" "answer" [ Delay (>0) ]
  13.   
  14.   INPUTS
  15.            "Message"     = string with a quick remainder.
  16.            "1st Command" = first command name and parameters.
  17.            "2nd Command" = second command name and parameters.
  18.            "answer"      = answer strings relative to commands.
  19.            Delay         = delay in seconds.
  20.   
  21.   FUNCTION
  22.            Solves the problem to start from the startup-sequence one
  23.            task or to choose between two different tasks, without
  24.            arresting totally its execution, by checking the answers
  25.            in a limited time interval.
  26.            If no adequate answers are given, spent the number of seconds
  27.            specified by Delay after last input (or even if no input is
  28.            given), the first command is executed by default.
  29.            Instead, if a right answer is input, Choose executes the
  30.            relative command immediatly.
  31.            If no Delay is specified, Choose will not execute commands
  32.            without a right answer.
  33.            It's possible to specify empty strings as commands or answers.
  34.            In the first case this is useful to decide to execute or less
  35.            one command - by setting to "" the "2nd Command".
  36.            In the second one to specify <CR> as a possible answer.
  37.            Quotation marks must be specified only in this case and if
  38.            Message, Commands or answers are composed by more than one word
  39.            (ie: command followed by parameters).
  40.  
  41.   BUGS
  42.            None.
  43.  
  44.   NOTE
  45.            This program is PD. No money is required for its use in a
  46.            private way.
  47.            It cannot be inserted in commercial softwares without the
  48.            authorization of the author.
  49.  
  50.                                                Rome, 20 February 1989
  51.  
  52.                       Gianluca Attura
  53.  
  54.  
  55.            23,Bargellini st.
  56.               00157 Rome
  57.                 Italy
  58.  
  59.  
  60.