HP Forums
Key assignment - 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: Key assignment (/thread-16942.html)



Key assignment - cmjaanes - 05-15-2021 11:44 AM

I am a newbie to HP Prime. Hope somebody can help. I use RPN.

Challenge: I use the function COMBINATIONS often and therefore want to assign COMB() to the SHIFT-7 user key.

I write a program as follows:
KEY KS_7()
BEGIN
RETURN "COMB";
END

I run the program.

It works, but I have to press an annoying ENTER everytime to evaluate.

Example:
5
enter
2
USER-SHIFT-7

This places "COMB" on the stack and I have to press ENTER to evaluate the result and then get the expected result (10) placed in the X register.

I would like "COMB" to be executed automatically by the program in such a way that immediately after I press "USER SHIFT 7", I get 10 in the x register.

Is this possible?

Thanks in advance

Rgds
Christian


RE: Key assignment - StephenG1CMZ - 05-15-2021 08:02 PM

I don’t think so, but could be wrong (I don’t use RPN).
This thread may be relevant.
https://www.hpmuseum.org/forum/thread-16302.html?highlight=User+key


RE: Key assignment - cmjaanes - 05-16-2021 03:34 PM

Thanks for the reply and for the very relevant link.
Too bad you can not access the RPN stack and issue an ENTER from a user key in RPN mode.
:-(