RemoveAccelerator (or RA)

Removes an accelerator keyboard (access) key or key combination assigned to a Help macro.

Syntax

RemoveAccelerator(key, shift-state)

RA(key, shift-state)

Parameter Description

key Windows virtual-key value assigned to the macro using the AddAccelerator macro. For the list of virtual keys, see Appendix A, “Windows Virtual-Key Codes.”
shift-state Number specifying the key or key combination to use with the accelerator key. Valid modifier keys are ALT, SHIFT, and CTRL.

NumberModifier key(s)

0(No modifier key)

1SHIFT

2CTRL

3SHIFT+CTRL

4ALT

5ALT+SHIFT

6ALT+CTRL

7ALT+SHIFT+CTRL


Example

The following macro removes the ALT+CTRL+F10 key combination that was assigned in the AddAccelerator macro example:

RemoveAccelerator(0x79, 6)

Comments

Windows Help does not display an error message if the author attempts to remove an unassigned accelerator key.

See Also

AddAccelerator