Convert Key Code to Character Code

Got questions? Got answers? Go here for both.

Moderator: MaxCoderz Staff

Post Reply
puromtec
New Member
Posts: 43
Joined: Fri 07 May, 2010 11:00 pm

Convert Key Code to Character Code

Post by puromtec »

Is there any easy way to convert from the Key Code from GetKey to the character code for TI display (vputmap, etc.)? I have searched for a while and have not found a method. Of course, I'm doing a bit of a text editor routine and this is a must. I am about to do a mapping myself.

I noticed two things:
1. The order of character's does not match the corresponding keycode order for non alpha characters / * !...like those.

2. The lower case key codes (using the set lwrCaseActive, (IY + appLwrCaseFlag)) do not show in the ti83Plus.inc (or I can't read).

Guidance appreciated.
User avatar
benryves
Maxcoderz Staff
Posts: 3087
Joined: Thu 16 Dec, 2004 10:06 pm
Location: Croydon, England
Contact:

Re: Convert Key Code to Character Code

Post by benryves »

I've not used it myself, but KeyToString seems to do what you need.
User avatar
NanoWar
Extreme Poster
Posts: 365
Joined: Fri 17 Dec, 2004 6:39 pm
Location: #$&"%§!
Contact:

Re: Convert Key Code to Character Code

Post by NanoWar »

Revolution Software
User avatar
benryves
Maxcoderz Staff
Posts: 3087
Joined: Thu 16 Dec, 2004 10:06 pm
Location: Croydon, England
Contact:

Re: Convert Key Code to Character Code

Post by benryves »

NanoWar wrote:This uses key tables:
http://www.ticalc.org/archives/files/fi ... 39943.html
It also uses GetCSC rather than GetKey. :)
Post Reply