http://jttechonline.com

JT Tech Services & Support Forum

Back to the forum index
Linear

javascript - What's the ascii of arrow keys? (Scripting and Programming Editing/Tips)

by sphenom, Saturday, February 06, 2010, 13:07 (214 days ago)

please don't say: 37(left arrow)38(up arrow)39(right arrow)40(down arrow)! that doesn't work! i've asked this in several forums.

external keys consists of two parts .. the first one is null .. and the second is the value of the keycode .. in c++ for example i can check if the value = null then i read the keycode again and so successfully i discovered the arrow ascii codes (null 75-null 77- null 72-null 80) .. i'm sure of that because i found it in a book for c++ basics .. so what's the problem? .. i can't even say (null) to javascript! .. undefined! ..
what a long story to make a simple action! ..
again .. in short .. anyone know how to detect arrow keys with javascript?

  327 views

javascript - What's the ascii of arrow keys?

by JTT, Monday, February 08, 2010, 07:40 (213 days ago) @ sphenom

I think this is what you're looking for.

CHR$(0) + CHR$(72) Up
CHR$(0) + CHR$(80) Down
CHR$(0) + CHR$(75) Left
CHR$(0) + CHR$(77) Right

Good Luck!

  290 views
RSS Feed of thread
75 Postings in 32 Threads, 1 registered users, 3 users online (0 registered, 3 guests)
Forum time: 2010-09-08, 23:34
RSS Postings  RSS Threads | Contact
powered & hosted by JT Tech Servers