Author |
Message |
Woodbridge
|
Posted: Wed May 28, 2003 9:23 am Post subject: Key Characters |
|
|
hey,
I was making a game which needs to use keys.
I already know that chr ( 200) is the up arrow key and chr (208) is the down arrow. what i dont know is anyother key characters. I was hoping tofind the keycharacter for a and z. So if somone can help me out i would appreciate it. or if you can, can somone tell me a website or somwhere where i can find all the key characters. |
|
|
|
|
 |
Sponsor Sponsor

|
|
 |
Prince

|
Posted: Wed May 28, 2003 9:46 am Post subject: (No subject) |
|
|
a is chr(97) and z is chr(122) |
|
|
|
|
 |
tum_twish
|
Posted: Wed May 28, 2003 10:26 am Post subject: (No subject) |
|
|
type this in turing
code: |
for i:1..300 %you can change the numbers to see if there are more
put i," ",chr(i):5..
end for
|
You can see all the chr values in turing |
|
|
|
|
 |
Blade
|
Posted: Wed May 28, 2003 11:39 am Post subject: (No subject) |
|
|
if you have turing 4 theres a whole table of the ascii characters and more in it. but just for refrences sake
A = 65
Z = 90
a = 97
z = 122
inbetween those letters just count up... so 66 = B etc. |
|
|
|
|
 |
void

|
Posted: Wed May 28, 2003 12:25 pm Post subject: (No subject) |
|
|
or if your smart do this
code: |
var key:string(1)
getch(key)
put ord(key)
|
basically, you press whatever key you want a ASCII code for, and it will give it to u...easy as pie...(again with the pie) lolz |
|
|
|
|
 |
Blade
|
Posted: Wed May 28, 2003 12:28 pm Post subject: (No subject) |
|
|
lol yeah i know about that.... you could do the same thing with using chr and an ord value
code: |
var num:int
loop
put "enter a number"
get num
put chr(num)
end loop |
woah. that was wierd. i was typing the code wrong and i sneezed. it made me realize i was doing it wrong... heh |
|
|
|
|
 |
void

|
Posted: Wed May 28, 2003 12:29 pm Post subject: (No subject) |
|
|
wow....talk about supernatural |
|
|
|
|
 |
naoki

|
Posted: Wed May 28, 2003 3:52 pm Post subject: (No subject) |
|
|
or if ur really lazy press F10 and click on the link that says something about getch key codes
(v. 4.x only) |
|
|
|
|
 |
Sponsor Sponsor

|
|
 |
|