Hot Key Control

Hot key controls allow users to enter a combination of keystrokes used as a hot key, which enables them to perform an action quickly. A hot key control displays the keystrokes entered by the user and ensures that the user selects a valid key combination.

The window class name for a hot key control is HOTKEY_CLASS, which is defined as "msctls_hotkey32" in Commctrl.h.

Supported Properties and Methods

  • accHitTest
    accLocation
    accNavigate
    accSelect
    get_accChildCount
    The ChildCount property is always zero.

  • get_accFocus
    get_accKeyboardShortcut
    The KeyboardShortcut property is the hot key control's access key, which is an underlined character in the text of the hot key control's label. The returned string contains the access key character appended to the string "Alt+".

  • get_accName
    The Name property is the text from a static text control that labels the hot key control.

  • get_accParent
    The Parent property is a window (ROLE_SYSTEM_WINDOW) that surrounds the control and has the same Name property and window class name as the control.

  • get_accRole
    The Role property is ROLE_SYSTEM_HOTKEYFIELD.

  • get_accState
    The State property is a combination of one or more of the following values:

    STATE_SYSTEM_INVISIBLE | STATE_SYSTEM_UNAVAILABLE | STATE_SYSTEM_FOCUSED | STATE_SYSTEM_FOCUSABLE

  • get_accValue
    The Value property is a string that contains the text in the hot key field.

Events Generated

EVENT_OBJECT_VALUECHANGE

See Also

IAccessible Interface