In a quote from the Daily Planet, Scott Vetter said:
SV> Is there a way under OS/2 and running a PB program that
SV> polls the keyboard to give up some of the time slices? When
SV> the program runs and polls for the keyboard performance of the
SV> whole OS/2 system goes down the tubes.
Use INSTAT instead of INKEY$. You may also need to call
interrupt 2Fh, function 1680h when keyboard polling indicates
nothing is in the keyboard buffer. I.e.,
do
if instat = 0 then
reg 1, &h1680
call interrupt &h2F
else
exit do
end if
loop
k$ = inkey$
... Many people own cats... and go on to lead purrfectly normal lives.
--- PPoint 1.86
---------------
* Origin: Seven Wells On-Line * Nashville, TN (1:116/3000.12)
|