Programming with Reflection
GetKeyMapCommandType method
Syntax ActionType = object.GetKeyMapCommandType(Modifiers, Key)
Returns the type of command associated with the specified 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
A string representation of a PC key, such as "K", "F1", or "NumLock." Click here to see a list of keys.
ActionType Return type: Enumeration
A number that indicates the type of action associated with the mapped keystroke. This will be one of the following. See SetKeyMap for details.
rcNotMapped
rcBuiltInFunction
rcTransmitString
rcVBCommand
rcVBMacro
rcRBCommand
rcRBScript
rcRCLCommand