KeyLoop.EXE   v1.21   ©   1993-1997   Petena AB
930414/970213   PiS   Peter Ingemar Strömblad
Description
KeyLoop decrements seconds and then returns an errorlevel of:
0 if the user does NOT press a key within the time limit
1 if the user presses a key within your time limit

Syntax: 
KeyLoop.Exe [Seconds] [/#KeyCharOrCode] ["your text"] [/i] [/v] [/?]

Parameter [Seconds] must when used be first parameter. Valid values 0-65535
Parameter /#KeyCharOrCode can have either one letter or a three digit code.
Option /i can be used to invert the returned errorlevel.
Option /v is used to verify abort when key is pressed.
"Your text"  @s invokes the second count, @k invokes the key to press

Example batch script:
-------------------------
@Echo off
KeyLoop 45 "Your server is starting in @s secs, press any key to abort."
If ErrorLevel 1 Goto END
Server\Server.Exe
:END
-------------------------
Press any key to terminate: 57

Error Codes 0  No key pressed
1  A key has been pressed
Register Please register your copy through http://www.petena.se/support/register.htm
Comments Your impression is very welcome through http://www.petena.se/support/report.htm
Notes !=Warning or Bug, +=Additions to be made, -=Comment
History
v0.00
v1.00
  970211 PiS -> Inverted return value, added switch /v /i, added text out
v1.20
  970213 PiS -> Corrected bug of repeated keypress
v1.21
http://www.petena.se/software/dos/keyloop.htm