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 >
Wrap
Text File
|
1991-09-14
|
4KB
|
179 lines
I N K E Y Ver. 4.0
(C)1989,1990,1991 Scanlon Enterprises
INKEY is a small utility to key keyboard input. INKEY will allow
the user to create a command line list, and exit with errorcodes
equal to the character position in the list, IE... If the list is
ABCD then A=1 & D=4.
Syntax : INKEY list
Where : 'list' is the list of assigned keys (see above).
Defaults: INKEY will exit with the ascii value (in decimal) of
the key press as an errorlevel, with extended keys reporting a
value of zero. Extended keys can be handled by calling a second
time, see examples below.
ERRORLEVELS: 255 (0FF) = Program Problem (call Author)
all other error levels are ascii values or character
position within a list.
EXAMPLES:
INKEY
Exits with an errorlevel equal to the ascii key pressed or 0 for
an extended key. Example show below for responding to extended
INKEY ABCD
Exits with an errorlevel of 1 thru 4 for keys A-D or 128 if
either ^C or Escape is detected.
EXTENDED KEYS
INKEY
IF ERRORLEVEL 1 GOTO NORMAL
INKEY
ECHO Extended Key
:NORMAL
ECHO Normal key
Page 1 of 3
I N K E Y Ver. 4.0
(C)1989,1990,1991 Scanlon Enterprises
Typical use:
ECHO OFF
CLS
TYPE MENU
INKEY 1234567
IF ERRORLEVEL 1 GOTO SELECT
INKEY
{Find errorlevel of function key and respond}
{Use IF ERRORLEVEL n GOTO}
:SELECT
FOR %%F IN (1 2 3 4 5 6 7) DO IF ERRORLEVEL %%F GOTO SEL%%F
{Routines for selections}
This utility can be very powerful in aiding the user to create
batch files to respond to virtually any keystroke.
For additional usage and information on using these utilities see
the file SEBFU.DOC or BATUT.DOC.
Page 2 of 3
I N K E Y Ver. 4.0
(C)1989,1990,1991 Scanlon Enterprises
O R D E R F O R M
INKEY registration ..................................... $3.00
What you get :
Unlimited usage of INKEY, and phone or write in support. You
will also be placed on our mailing list for future updates and
new products.
Your registration returns you the enhanced version with many more
features, such as :
Selection of key and errorlevel to return
Echo the key stroke (optional)
Select screen color of key to to echo
Select use of Extended keys (Respond or Don't respond)
Respond, or don't respond to Escape or ^C
-MORE-
We are offering this utility seperate from SEBFU as a favor to
users who do NOT wish to use many of the SEBFU utilities.
This utility is automatically registered to you when you register
SEBFU as a product (see REG.DOC). Registering SEBFU as a product
is a better bargin, as each utility will cost less than $ .25
each.
Vendors:
You may distribute INKEY seperately, provided this document is
distributed as well. Any reasonable fee may be charged.
Send your order to : SCANLON ENTERPRISES
38354 17TH ST E.
PALMDALE, CA 93550