Computer Science Canada

Key Characters

Author:  Woodbridge [ 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.

Author:  Prince [ Wed May 28, 2003 9:46 am ]
Post subject: 

a is chr(97) and z is chr(122)

Author:  tum_twish [ Wed May 28, 2003 10:26 am ]
Post 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

Author:  Blade [ Wed May 28, 2003 11:39 am ]
Post 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.

Author:  void [ Wed May 28, 2003 12:25 pm ]
Post 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

Author:  Blade [ Wed May 28, 2003 12:28 pm ]
Post 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

Author:  void [ Wed May 28, 2003 12:29 pm ]
Post subject: 

wow....talk about supernatural

Author:  naoki [ Wed May 28, 2003 3:52 pm ]
Post subject: 

or if ur really lazy press F10 and click on the link that says something about getch key codes

(v. 4.x only)


: