PV-WAVE Foundation > User Guide > Getting Started: Windows > Assigning Commands to Function Keys
Assigning Commands to Function Keys
Function keys may be equated to a character string using the DEFINE_KEY procedure. This allows frequently used strings and commands to be entered with a single keystroke. For example, the <F10> key on your keyboard can be equated to the string PLOT, as shown in the example below.
; Load predefined function key definitions.
SETUP_KEYS
; Enter the text “PLOT” at the WAVE> prompt when the F10 function
; key is pressed.
DEFINE_KEY, 'F10', 'PLOT'
For detailed information on how to customize the behavior of your function keys using the DEFINE_KEY procedure, see its description in the PV‑WAVE Reference.
To see how your function keys are presently defined, enter this command:
INFO, /Keys
 
note
A natural place to put your key definitions is in your startup file so that the function keys are defined when PV‑WAVE is initialized. The defaults for the key definitions are established by the SETUP_KEYS procedure that gets called from the wavestartup file. For more information about startup files, see the PV‑WAVE Programmer’s Guide.