Hello,
Can someone help my science class by making a program to display the keyboard keys ? Example: press the key for an eight (8) and it displays an 11 this can then be used with onkey command. The kids want to control motors in qbasic by pressing the keys on the key board.
Thank you, for all your help it was valuable, I guess the best way to learn is to get both feet in, and try. The code is old, but hey it works ! Lee you hit the nail on the head ! Return of course !
Programmers,
OK, the qbasic.hlp helped a lot. Thank you. Now I have another problem when I continue to use the arrow keys I get an out of stack space error. How can I supress this ?
Here is the code:
' Findkey.bas used to find what key is pressed
DEFINT A-Z
CLS
start:
KEY(11) ON...
Hello,
Does anyone know the keyboard map for all the keys to use with the onkey command ? I tried to use the same onkey codes with qbasic as I used to use with gwbasic. I need the codes for the arrow keys (seperate pad not numeric keys). Can anyone help ?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.