<CT> Slightly OT Q-Basic under Win95 vs Win31/DOS

  • From: William C Andrews <uncwilly@xxxxxxxx>
  • To: calmira_tips@xxxxxxxxxxxxx, dosonly@xxxxxxxxxx
  • Date: Sat, 12 Apr 2003 21:48:59 PDT

x-posted DOS-only & CalmiraTips

Hi folks,

Been a while since I spoke up in either of these locations.
I have a small difficulty, and figured that maybe one of 
the gurus on these lists might know the solution.

I have a QBasic program that I wrote and use on a Win3.1/DOS
machine.  It runs no problem in or out of Win.  A friend 
wants to use it on his WinXP machine.  So I tested it on 
my Win98 machine.  Ooops.

It appears that QBasic does not read the keyboard scancodes
properly under Win9X.  The bits of code relevent to the 
situation are:

.......
ON KEY(5) GOSUB Addmin
ON KEY(6) GOSUB Submin
KEY 15, CHR$(0) + CHR$(57)
ON KEY(15) GOSUB Pause
KEY(0) ON
......
......
Pause:
stoptime = TIMER
DO
LOOP UNTIL INKEY$ = CHR$(27)
restarttime = TIMER
starttime = starttime + (restarttime - stoptime)
RETURN
......


The function keys are read properly as is ESC in the pause
loop.  But the space bar is not.  It is being used to
pause because it is big and easy to slap.


Any help would be appreciated.   I have been looking to 
recode this program into C, but the KEY and TIMER functions
don't seem to be available.


-- .
William Andrews       Uncwilly@xxxxxxxx
http://www.geocities.com/unc_willy/vegalink.html
Reduce-Reuse-Recycle
Please turn off HTML/MIME in e-mail  http://www.expita.com/nomime.html

--
To unsubscribe, send a message to ecartis@xxxxxxxxxxxxx with
"unsubscribe calmira_tips" in the body.
OR visit http://freelists.org



Other related posts:

  • » <CT> Slightly OT Q-Basic under Win95 vs Win31/DOS