Article ID: 124759
Article Last Modified on 8/16/2005
CONST CTRLFLAG = &H4 'define constants
CONST UPARROW = 72
CONST DOWNARROW = 80
'Setup keys to trap, and turn on the trapping
KEY 15, CHR$(CTRLFLAG) + CHR$(UPARROW)
KEY 16, CHR$(CTRLFLAG) + CHR$(DOWNARROW)
ON KEY(15) GOSUB GotUp
ON KEY(16) GOSUB GotDown
KEY(15) ON
KEY(16) ON
WHILE INKEY$ <> "Q" 'sit in loop and wait for keypresses
WEND
END
GotUp:
PRINT "Ctrl-Up"
RETURN
GotDown:
PRINT "Ctrl-Down"
RETURN
Additional query words: VBmsdos QuickBas BasicCom 2.00 2.10 3.00 4.00 4.00b 4.50
Keywords: KB124759