Listing of inkey$ codes

If you have questions about any aspect of QBasic programming, or would like to help fellow programmers solve their problems, check out this board!

Moderators: Pete, Mods

Rattrapmax6
Veteran
Posts: 1055
Joined: Sun Jan 02, 2005 2:11 pm
Location: At my computer
Contact:

Post by Rattrapmax6 »

Kylemc wrote:
matt2jones wrote:

Code: Select all

do :A$ = right$(inkey$,1):print A$,asc(A$):loop until A$ = chr$(27)
He just did show you..
Not what I ment, the example of tabling Cosines and Sines has no relation ship to this code which mearly prints the iformation of a pressed key. Even if you did table INKEY$, you'd still need to know which was which key....

but nm, no need to start a flame over a simple question. :wink:
-Kevin (aka:Rattra)
(x.t.r.GRAPHICS)
qbfreak2000
Newbie
Posts: 5
Joined: Tue Oct 25, 2005 5:25 pm
Location: U.S.A.
Contact:

Thank You!

Post by qbfreak2000 »

thanks! this stuff really helps, guys.
Willi@m C.
Rattrapmax6
Veteran
Posts: 1055
Joined: Sun Jan 02, 2005 2:11 pm
Location: At my computer
Contact:

Post by Rattrapmax6 »

@ qbfreak: You are welcome... :wink:
matt2jones wrote:
F1 = CHR$(0) + ";"
F2 = CHR$(0) + "<"
F3 = CHR$(0) + "="
F4 = CHR$(0) + ">"
F5 = CHR$(0) + "?"
F6 = CHR$(0) + "@"
F7 = CHR$(0) + "A"
F8 = CHR$(0) + "B"
F9 = CHR$(0) + "C"
F10 = CHR$(0) + "D"
F11 = CHR$(0) + "?" * (OR: CHR$(0) + CHR(133) )
F12 = CHR$(0) + "?" ** (OR: CHR$(0) + CHR(134) )
Ironicly, I have been using similar constants for the past couple of months since I started coding most projects in FB, so it just helps to prove my point that you don't know these things properly if you rely on tables like the above.
This table is for QBasic.... :P

And in FreeBASIC you have the multikey() option,.. Is it wrong to use the table included in the gfxlib document to find the correct hexadecimal for the key you need? :P Or the premade header file so you can use the key lable?
-Kevin (aka:Rattra)
(x.t.r.GRAPHICS)
moneo
Veteran
Posts: 451
Joined: Tue Jun 28, 2005 7:00 pm
Location: Mexico City, Mexico

Post by moneo »

matt2jones wrote:.....
All I'm trying to say is it's better to know how to work out an answer then to have a load of answers written infront of you and keep copying them off.

matt
Very good point, Matt.
*****
User avatar
matt2jones
Veteran
Posts: 80
Joined: Sat Feb 19, 2005 8:29 am
Location: elsewhere
Contact:

Post by matt2jones »

And in FreeBASIC you have the multikey() option,.. Is it wrong to use the table included in the gfxlib document to find the correct hexadecimal for the key you need?
:shock: Okay, What the flying fork?!?!?

Why?... Why?

I can't even summon the strength to anwer that...

we were talking about mother fork qbasic

This entire fork thread is about INKEY$ for qbasic
I, along with the rest of the world, use said files with a clear concience. That is not what I am arguing about.

Repeat:

I am not trying to diss/convert you or your way of life. We are on the same side.
if you wanna insult me, have the decency to PM me or something.
Why do I get the feeling I'm repeating myself?

matt - can't handle a joke
Do not mistake Apathy for feeling Content.

http://www.disjointed.cjb.net - Short Storys
http://matt2jones.deviantart.com - Random Art
http://www.freewebs.com/matt2jones - WebComic
Post Reply