05-05-2002, 04:18 PM
no, MULTIKEY(1)"q" wont work, the number in the parenthesis is the scancode [NOT THE SAME AS INKEY$ SCANCODES]
for example
MULTIKEY(1) is escape
MULTIKEY(2) is number 1 on the keyboard
MULTIKEY(3) is number 2 on the keyboard
MULTIKEY(16) is letter 'q'
MULTIKEY(28) is enter
etc
To test for the key number (ie MULTIKEY(keynumber))
use KEYTEST
it should then give you a little table, press the keys you want, and you should see a '1' next to a number, that number is the scan code
if you press 2 keys (or more) at once, several numbers should 'turn on' Most of this is explained in the top of the bas file.
one other thing:
TO USE MULTIKEY YOU MUST TURN IT ON BY CALLING
int = MULTIKEY(-1) 'I use the variable int for initializeing functions because where else are you going to use a variable called 'int'?
ANOTHER THING, BEFORE YOUR PROGRAM ENDS YOU MUST CALL
int = MULTIKEY(-2)
to turn your keyboard handler back to normal, or your keyboard will not work
-----------
meritmonster
for example
MULTIKEY(1) is escape
MULTIKEY(2) is number 1 on the keyboard
MULTIKEY(3) is number 2 on the keyboard
MULTIKEY(16) is letter 'q'
MULTIKEY(28) is enter
etc
To test for the key number (ie MULTIKEY(keynumber))
use KEYTEST
it should then give you a little table, press the keys you want, and you should see a '1' next to a number, that number is the scan code
if you press 2 keys (or more) at once, several numbers should 'turn on' Most of this is explained in the top of the bas file.
one other thing:
TO USE MULTIKEY YOU MUST TURN IT ON BY CALLING
int = MULTIKEY(-1) 'I use the variable int for initializeing functions because where else are you going to use a variable called 'int'?
ANOTHER THING, BEFORE YOUR PROGRAM ENDS YOU MUST CALL
int = MULTIKEY(-2)
to turn your keyboard handler back to normal, or your keyboard will not work
-----------
meritmonster