Post Reply 
Extra set of User defined Keys?
09-27-2022, 06:57 PM (This post was last modified: 09-27-2022 07:12 PM by matalog.)
Post: #1
Extra set of User defined Keys?
Is there any way to create a 2nd (or indeed 3rd etc) set of user defined keys on the HP Prime?

Is there a file somewhere that stores them that could be instructed to switch the user defined keys over from a Notes file for example?
Find all posts by this user
Quote this message in a reply
09-27-2022, 09:55 PM
Post: #2
RE: Extra set of User defined Keys?
Key definitions are programs. I don’t think you can do exactly what you need, but there are solutions:

1- Elegant
Use a global variable to store the “page” you want to be active.
Then, for each key you need to be defined differently according to the page, create a function with a CASE statement on the global variable.

Code:

EXPORT kPage;

KEY K_Sin()
BEGIN
 CASE
  IF kPage = 0 THEN RETURN "ABC()"; END;
  IF kPage = 1 THEN RETURN "DEF()"; END;
 DEFAULT
  RETURN "GHI()";
 END;
END;

Of course you can assign the change of the value of your global variable to a key Wink

2- Lazy
The key definitions are read in the last edited program containing some. So just create as many program files as you want, and when you need to change the key page you just have to open the program editor for the designed program file.

Thibault - not collector but in love with the few HP models I own - Also musician : http://walruspark.co
Find all posts by this user
Quote this message in a reply
09-28-2022, 09:51 PM
Post: #3
RE: Extra set of User defined Keys?
(09-27-2022 09:55 PM)pinkman Wrote:  Key definitions are programs.

That is enough to do anything with. Thank you.
Find all posts by this user
Quote this message in a reply
Post Reply 




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