Post Reply 
Extra set of User defined Keys?
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
Post Reply 


Messages In This Thread
Extra set of User defined Keys? - matalog - 09-27-2022, 06:57 PM
RE: Extra set of User defined Keys? - pinkman - 09-27-2022 09:55 PM



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