qbasicking
Programmer
i'm having a problem working with the ALT key (Ctrl, Shift, et cetera also). I am probably just doing one little dumb thing wrong, I know this doesn't look right but I just can't put my fingure on what is wrong. Here is a sample of the source code I am using:
KEY 15, CHR$(0), CHR$(&H56) 'declaring key
KEY(15) ON
DO
ON KEY(15) GOSUB aa
x$ = INKEY$ 'this is just so i can get out of the loop
LOOP UNTIL x$ = CHR$(27) 'ESC key
END
aa: PRINT "ALT"
END
I think there is something wrong with the way I declare the key. I also can't get any other keys to work in this way. (Ctrl, Alt, Bckspace, Del, Enter, Tab, End, Home, PgUp, PgDn) don't worry about the arrow keys i use a different type of code to work them.
KEY 15, CHR$(0), CHR$(&H56) 'declaring key
KEY(15) ON
DO
ON KEY(15) GOSUB aa
x$ = INKEY$ 'this is just so i can get out of the loop
LOOP UNTIL x$ = CHR$(27) 'ESC key
END
aa: PRINT "ALT"
END
I think there is something wrong with the way I declare the key. I also can't get any other keys to work in this way. (Ctrl, Alt, Bckspace, Del, Enter, Tab, End, Home, PgUp, PgDn) don't worry about the arrow keys i use a different type of code to work them.