HP Forums

Full Version: User Keys RPN
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
So I'm trying to shortcut the CONVERT() in RPN to make my life easier. I my program is easy

KEY K_Eex()
BEGIN
RETURN "CONVERT()";
END;

but when I use the user key in RPN it just prints the convert then I have to press OMG [ENTER] all over again. This makes me grumpy. Does anyone know how I can just tell it to press enter for me and trust me that I'll use it where I will need it?

I was thinking it should look like this

KEY K_Eex()
BEGIN
RETURN "CONVERT()";
// Some code here that presses enter for me
END;
What I'm about to show you is sad. But found a hack to make what I want work. You had KILL; Before the end of the program

KEY K_Eex()
BEGIN
RETURN "CONVERT()";
KILL;
END;

So in RPN mode type
30_deg [ENTER]
1_rad [ENTER]
[Shift]
[Help]
[EXX]

0.52....._rad

It seems that KILL; presses enter for you or something.

I think this might work for a bunch of other functions too.
(01-09-2016 09:32 PM)luisphysics Wrote: [ -> ]What I'm about to show you is sad. But found a hack to make what I want work. You had KILL; Before the end of the program

KEY K_Eex()
BEGIN
RETURN "CONVERT()";
KILL;
END;

So in RPN mode type
30_deg [ENTER]
1_rad [ENTER]
[Shift]
[Help]
[EXX]

0.52....._rad

It seems that KILL; presses enter for you or something.

I think this might work for a bunch of other functions too.

Does not work here :-(
Are you using the physical calculator or are you using one of the apps? Because this works on my calculator but not on the iOS version
(01-11-2016 02:12 AM)luisphysics Wrote: [ -> ]Are you using the physical calculator or are you using one of the apps? Because this works on my calculator but not on the iOS version

Physical Calculator, latest firmware.

But I admit I did not try your solution with your exact inputs. I use a different key assignment and a different return statement. I will try it exactly as you typed and report.

François
Reference URL's