Post Reply 
Prime: Key Assignment
12-14-2023, 11:05 AM
Post: #8
RE: Prime: Key Assignment
(01-13-2014 07:03 PM)Han Wrote:  
(01-13-2014 05:19 PM)Miguel Toro Wrote:  Hi Han,

How do you do that? Is it using the RETURN command? I cannot find any reference of that on the manual. I would like, for example, to send a ESC command at the end of a program.

Thanks and regards,

Miguel

My post should probably have clarified that the keyeval effect was limited to the user keys. That is, one may redefine a user key by returning the keynumber. For example,

Code:

KEY K_7()
BEGIN
  RETURN(39);
END;

This turns the 7 key into the 6 key on the Home screen. You can put additional commands above the return(39) statement if you want to do some pre-processing before sending it over to the system keyhandler.

How can I reset a previous wrong user-key assignment, such that in "User" mode (Shit Help, Shift Help) pressing that key reverts back to the standard key definition?
I wasn't able to find this on the User Manual.
Is it possible to remove a single user-key assignment? Or you must clear all them together? Or (even worse) you need reset the whole Prime calculator?
I have made some user-key assignments (in various different programs) that are permanently useful to me and so I normally stay in permanent User mode, but then I added assigned some wrong function ("propfrac()", to make it work in CAS environment similarly as in Home) to the K_Abc() key. Now, in this way, it doesn't work as desired in Home environment (showing floating numbers as fractions a/b or proper fractions a+b/c). I would tike to recover the original normal behavior.
As an aside question: where user-key assignments are stored on the HP Prime? Knowing that it would be easy to clear the relevant variable.
Another (different, but someway linked) question:
Inside a program, is there a way to know in which environment the Prime is currently set? i.e. to read a (possible) system variable, GET<something>, telling the current environment mode: Home or CAS?
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Prime: Key Assignment - Terje Vallestad - 01-11-2014, 05:22 PM
RE: Prime: Key Assignment - The Shadow - 01-11-2014, 09:02 PM
RE: Prime: Key Assignment - Han - 01-11-2014, 10:38 PM
RE: Prime: Key Assignment - Miguel Toro - 01-13-2014, 05:19 PM
RE: Prime: Key Assignment - Han - 01-13-2014, 07:03 PM
RE: Prime: Key Assignment - Mario Blasone - 12-14-2023 11:05 AM
RE: Prime: Key Assignment - Tyann - 12-14-2023, 05:12 PM
RE: Prime: Key Assignment - Miguel Toro - 01-13-2014, 10:47 PM
RE: Prime: Key Assignment - gehakte_bits - 12-14-2023, 08:16 PM



User(s) browsing this thread: 2 Guest(s)