Programming with Reflection
GetKeyMapCommands method
Syntax Action = object.GetKeyMapCommands(Modifiers, Key)
Returns the action assigned to a particular keystroke.
Modifiers Argument Type: Enumeration
Required
A keystroke consists of a primary key and one or more optional modifier keys¾Alt, Ctrl, and Shift. The possible modifier keys are:
rcNormalKey
rcAltKey
rcCtrlKey
rcShiftKey
To specify multiple modifier keys, use the addition operator (+). For example: rcAltKey + rcCtrlKey.
Key Argument Type: String
Required
String representing a PC key, such as "K", "F1", or "NumLock." Click here to see a list of keys.
Action Return type: String
The text of the command associated with the mapped keystroke. This can be a built-in function, a string to transmit, a Visual Basic statement, a Reflection macro, a Reflection Basic script, an RCL command, or an RCL script. Use GetKeyMapCommandType to determine what kind of command is returned.