home *** CD-ROM | disk | FTP | other *** search
/ Share Gallery 1 / share_gal_1.zip / share_gal_1 / UT / UT214.ZIP / SEBFU40.LZH / INKEY.DOC < prev    next >
Text File  |  1991-09-14  |  4KB  |  179 lines

  1.  
  2.                             I N K E Y     Ver. 4.0
  3.  
  4.  
  5.                     (C)1989,1990,1991  Scanlon Enterprises
  6.  
  7.  
  8.  
  9.  
  10.  
  11.        INKEY is a small utility to key keyboard input. INKEY will allow 
  12.        the user to create a command line list, and exit with errorcodes 
  13.        equal to the character position in the list, IE... If the list is 
  14.        ABCD then A=1 & D=4.
  15.  
  16.  
  17.  
  18.        Syntax : INKEY list
  19.  
  20.  
  21.        Where : 'list' is the list of assigned keys (see above).
  22.  
  23.  
  24.        Defaults: INKEY will exit with the ascii value (in decimal) of 
  25.        the key press as an errorlevel, with extended keys reporting a 
  26.        value of zero. Extended keys can be handled by calling a second 
  27.        time, see examples below.
  28.  
  29.  
  30.        ERRORLEVELS: 255 (0FF) = Program Problem (call Author)
  31.                    all other error levels are ascii values or character
  32.                    position within a list.
  33.  
  34.  
  35.        EXAMPLES:
  36.  
  37.                INKEY
  38.  
  39.        Exits with an errorlevel equal to the ascii key pressed or 0 for 
  40.        an extended key. Example show below for responding to extended
  41.  
  42.                INKEY ABCD
  43.  
  44.        Exits with an errorlevel of 1 thru 4 for keys A-D or 128 if 
  45.        either ^C or Escape is detected.
  46.  
  47.  
  48.        EXTENDED KEYS
  49.  
  50.                INKEY
  51.                IF ERRORLEVEL 1 GOTO NORMAL
  52.                INKEY
  53.                ECHO Extended Key
  54.                :NORMAL
  55.                ECHO Normal key
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.       Page 1 of 3
  64.  
  65.                             I N K E Y     Ver. 4.0
  66.  
  67.  
  68.                     (C)1989,1990,1991  Scanlon Enterprises
  69.  
  70.  
  71.  
  72.  
  73.        Typical use:
  74.  
  75.                ECHO OFF
  76.                CLS
  77.                TYPE MENU
  78.                INKEY 1234567
  79.                IF ERRORLEVEL 1 GOTO SELECT
  80.                INKEY
  81.                {Find errorlevel of function key and respond}
  82.                {Use IF ERRORLEVEL n GOTO}
  83.                :SELECT
  84.                FOR %%F IN (1 2 3 4 5 6 7) DO IF ERRORLEVEL %%F GOTO SEL%%F
  85.                {Routines for selections}
  86.  
  87.  
  88.        This utility can be very powerful in aiding the user to create 
  89.        batch files to respond to virtually any keystroke.
  90.  
  91.  
  92.  
  93.        For additional usage and information on using these utilities see 
  94.        the file SEBFU.DOC or BATUT.DOC.
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.       Page 2 of 3
  127.  
  128.                              I N K E Y    Ver. 4.0
  129.  
  130.  
  131.                     (C)1989,1990,1991  Scanlon Enterprises
  132.  
  133.  
  134.  
  135.                              O R D E R     F O R M
  136.  
  137.  
  138.  
  139.  
  140.        INKEY registration ..................................... $3.00
  141.  
  142.  
  143.  
  144.  
  145.        What you get :
  146.  
  147.        Unlimited usage of INKEY, and phone or write in support. You 
  148.        will also be placed on our mailing list for future updates and 
  149.        new products.
  150.  
  151.        Your registration returns you the enhanced version with many more 
  152.        features, such as :
  153.  
  154.                Selection of key and errorlevel to return
  155.                Echo the key stroke (optional)
  156.                Select screen color of key to to echo
  157.                Select use of Extended keys (Respond or Don't respond)
  158.                Respond, or don't respond to Escape or ^C 
  159.                -MORE-
  160.  
  161.        We are offering this utility seperate from SEBFU as a favor to 
  162.        users who do NOT wish to use many of the SEBFU utilities.
  163.  
  164.        This utility is automatically registered to you when you register 
  165.        SEBFU as a product (see REG.DOC). Registering SEBFU as a product 
  166.        is a better bargin, as each utility will cost less than $ .25 
  167.        each.
  168.  
  169.  
  170.        Vendors:
  171.  
  172.        You may distribute INKEY seperately, provided this document is 
  173.        distributed as well. Any reasonable fee may be charged.
  174.  
  175.  
  176.        Send your order to : SCANLON ENTERPRISES
  177.                             38354 17TH ST E.
  178.                             PALMDALE, CA 93550
  179.