Post Reply 
Key assignment
05-15-2021, 11:44 AM
Post: #1
Key assignment
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
Find all posts by this user
Quote this message in a reply
05-15-2021, 08:02 PM
Post: #2
RE: Key assignment
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-16...t=User+key

Stephen Lewkowicz (G1CMZ)
https://my.numworks.com/python/steveg1cmz
Visit this user's website Find all posts by this user
Quote this message in a reply
05-16-2021, 03:34 PM
Post: #3
RE: Key assignment
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.
:-(
Find all posts by this user
Quote this message in a reply
Post Reply 




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