Bryce,I have written a 10 byte program for you to get the key from the keyboard buffer and return it to KiX in @error. I have also written a program that does the same as sleep, but accepts milliseconds...
Unfortunately I cannot get to my software page to update it
so... I have emailed them to you. If anyone else wants a copy, just email me: chrismat@ozemail.com.au
Usage:
getkey.com - just run it and if there is a key in the buffer, it will return it in %errorlevel% (or @error in Kix)
ddelay.exe - ddelay n where n is the number of milliseconds to wait.
how to use these in KiX:
this is my getkey test program
code:
break on
;
; GETKEY gets the next key from the keyb buffer
;
:label1
flushkb
shell "cmd /c getkey"
?
"@error"
if @error=113
quit
endif
goto label1
The flushKB was my testingto use ddelay:
code:
shell "%comspec% /c ddelay 500"
half second delay
While ddelay is running, you can put a key in the buffer...
hope this helps somewhere...
cj
[This message has been edited by cj (edited 03 November 2000).]