HP Forums
User Key for built in Features? - Printable Version

+- HP Forums (https://www.hpmuseum.org/forum)
+-- Forum: HP Calculators (and very old HP Computers) (/forum-3.html)
+--- Forum: HP Prime (/forum-5.html)
+--- Thread: User Key for built in Features? (/thread-7098.html)



User Key for built in Features? - CH3791 - 10-25-2016 06:10 AM

Hi guys,
I would like to move the define functionality from its default spot of (shift + xtθn) to another key. How would I go about creating a user key for this?


RE: User Key for built in Features? - CH3791 - 10-29-2016 10:23 PM

Righteo, so I found that if you return the key id number, you can get the "original key".

For example,
Code:
KEY K_PAREN()
BEGIN
RETURN 17;
END;
converts the () key into the xtθn key.

However, I still don't know how to access the shift or alpha versions of those keys. Is there a way to modify the key ID to do so? Like K_SHIFT(17) or something?


RE: User Key for built in Features? - Didier Lachieze - 10-29-2016 10:40 PM

(10-29-2016 10:23 PM)CH3791 Wrote:  However, I still don't know how to access the shift or alpha versions of those keys. Is there a way to modify the key ID to do so? Like K_SHIFT(17) or something?

Add 51 to the key id to access the shifted function and 102 for the alpha character.


RE: User Key for built in Features? - CH3791 - 10-29-2016 10:49 PM

(10-29-2016 10:40 PM)Didier Lachieze Wrote:  Add 51 to the key id to access the shifted function and 102 for the alpha character.
That's. Awesome. Thanks very much!


RE: User Key for built in Features? - CH3791 - 10-30-2016 12:20 AM

Thanks Moonbeam for replying, but what you've presented is the list of key names, and not how to access it. If that makes sense?