Help
Help
(OP)
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.
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.
RE: Help
RE: Help
doing it myself -- something like
while char$<>chr$(27)
a$=""
while a$="":a$=inkey$:wend
select case asc(left$(a$,1))
case 0 'control keys (up/down insert,etc)
.
.
case 8 'backspace
.
case 13 'CR
.
case 27 'esc
char$=chr$(27)
case else
if len(a$)=1 then
char$=a$
else
.
end if
end select
wend
RE: Help
Have Fun, Be Young... Code BASIC

-Josh
http://cubee.topcities.com
PROGRAMMER: (n) Red-eyed, mumbling mammal capable of conversing with inanimate objects.