The Translate a Key Name into a Key Code routine translates the key name of a key on the keyboard into its associated key code. Format SMG$NAME_TO_KEYCODE key-name ,key-code
1 – Returns
OpenVMS usage:cond_value type: longword (unsigned) access: write only mechanism: by value
2 – Arguments
key-name OpenVMS usage:char_string type: character string access: read only mechanism: by descriptor String containing the name of the key to be translated into a key code. The key-name argument is the address of a descriptor pointing to the character string containing the key name. The key-name argument is simply the name of the key (for example, COMMA, PERIOD, KP4, and so forth). key-code OpenVMS usage:word_unsigned type: word (unsigned) access: write only mechanism: by reference Specifies the key code into which key-name is to be translated. The key-code argument is the address of an unsigned word that contains the key code. The key code is returned by SMG$READ_COMPOSED_LINE, SMG$READ_ KEYSTROKE, SMG$READ_STRING, and SMG$READ_VERIFY in the word- terminator-code argument.