|Re: HP 50g switching two keys in the user keyboard|
Message #9 Posted by Joe Horn on 5 Dec 2013, 6:03 a.m.,
in response to message #8 by Mark Puscas
The easiest way, without needing to know anything about System RPL, is to download the KeyMan library and use its ->TO? command, which takes any object or program and prepends TakeOver onto it.
Joe: How does one put a "take over" command in?
If you would rather do it yourself, here's a tiny program that does the same thing as the ->TO? command in the KeyMan library. Just place the desired object or program on level 1, and then run this program:
BYTES: 17.5, #EE02h
If the input to the above program is XXX (a single non-program object), then the output is this program:
:: TakeOver XXX ;
If the input is :: XXX YYY ZZZ ; (a program), then the output is this program:
:: Takeover XXX YYY ZZZ ;
I hope that made sense!
Edit: Warning: "TakeOver" is a System RPL command which is INVISIBLE in User RPL, so don't worry if the above SEEMS to have no effect. It does have the intended effect, but you just can't see it on the stack. You can always do a BYTES on the output to verify that it's bigger than the input. Or toggle flag -85 if you're adventurous. ;-)
Edited: 5 Dec 2013, 6:08 a.m.