
Reassigning keys
Suppose you want to assign a commonly used function—such as ALOG—to its own key on the keyboard.
Simply create a new program that mimics the syntax in the following gure.
The rst line of the program species the key to be reassigned using its internal name. (The names of all the
keys are given in Key names on page 572. They are case-sensitive.)
On line 3, enter the text you want produced when the key being reassigned is pressed. This text must be
enclosed in quote marks.
The next time you want to insert ALOG at the position of your cursor, you just press .
You can enter any string you like in the RETURN line of your program. For example, if you enter “Newton”, that
text will be returned when you press the reassigned key. You can even get the program to return user-dened
functions as well as system functions, and user-dened variables as well as system variables.
You can also reassign a shifted key combination. So, for example, could be
reassigned to produce SLOPE(F1(X),3) rather than the lowercase t. Then if is
entered in Home view and pressed, the gradient at X = 3 of whatever function is currently
dened as F1(X) in the Function app would be returned.
TIP: A quick way to write a program to reassign a key is to press and select Create user key when
you are in the Program Editor. You will then be asked to press the key (or key combination) you want to
reassign. A program template appears, with the internal name of the key (or key combination) added
automatically.
Key names
The rst line of a program that reassigns a key must specify the key to be reassigned using its internal name.
The table below gives the internal name for each key. Note that key names are case-sensitive.
572 Chapter 28 Programming in HP PPL
Komentarze do niniejszej Instrukcji