Show / Hide Table of Contents

Struct HookData.Keyboard

Event data for the hook procedure set by WindowsHook.Keyboard. More info: API LowLevelKeyboardProc.

public struct HookData.Keyboard

Namespace: Au.Types
Assembly: Au.dll

Fields

Name Description
hook

The caller object of your hook procedure. For example can be used to unhook.

Properties

Name Description
IsAlt

Key Alt is pressed.

IsExtended

Is extended key.

IsInjected

true if the event was generated by API such as SendInput. false if the event was generated by the keyboard.

IsInjectedByAu

true if the event was generated by functions of this library.

IsUp

Is key-up event.

Key

If vkCode is a left or right modifier key code (LShift, LCtrl, LAlt, RShift, RCtrl, RAlt, RWin), returns the common modifier key code (Shift, Ctrl, Alt, Win). Else returns vkCode.

Mod

If the key is a modifier key (Shift, Ctrl, Alt, Win), returns the modifier flag. Else returns 0.

dwExtraInfo

API KBDLLHOOKSTRUCT

flags

API KBDLLHOOKSTRUCT

scanCode

API KBDLLHOOKSTRUCT

time

API KBDLLHOOKSTRUCT

vkCode

API KBDLLHOOKSTRUCT

Methods

Name Description
BlockEvent()

Call this function to steal this event from other hooks and apps.

IsKey(KKey)

Returns true if key == vkCode or key is Shift, Ctrl, Alt or Win and vkCode is LShift/RShift, LCtrl/RCtrl, LAlt/RAlt or RWin.

ToString()