Qbasicnews.com

Full Version: Challenge: ScanCode() routine
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
I used "SHIFT", "BACKSPACE", etc. in my unfinished version.
Ya just follow what agamemnus suggested..
Were there any submissions?
no...
INP(96) returns keyboard scancodes

CLS
WHILE keynumber% <> 1 'ESC = 1
keynumber% = INP(96)
LOCATE 1, 1: PRINT "The number of the key being pressed is"; keynumber%; " "
LOCATE 2, 1: PRINT "(Press some keys)"
WEND
that doesn't do whats specified. that just returns a scancode fomr the keyboard
Pages: 1 2