Table of Contents

Enum EventType

Namespace
SharpHook.Data
Assembly
SharpHook.dll

Represents the type of an input event which can be raised from a global hook or posted as a fake event.

public enum EventType

Fields

HookDisabled = 2

Raised when the global hook is stopped. Ignored when posted.

HookEnabled = 1

Raised when the global hook is started. Ignored when posted.

KeyPressed = 4

Raised when a key is pressed (its state changed from up to down) or posted to press a key.

KeyReleased = 5

Raised when a key is released (its state changed from down to up) or posted to release a key.

KeyTyped = 3

Raised when a key press may have caused a character to be typed regardless of whether a character was actually typed. Ignored when posted.

Events of this type are raised after events of type KeyPressed if the pressed key may have caused characters to be typed regardless of whether they were actually typed. Since a single key press can cause multiple characters to be typed, a single event of type KeyPressed can cause multiple events of type KeyTyped.

Since events of this type are not raised by the OS, suppressing them has no effect.

MouseClicked = 6

Raised when a mouse button is clicked. Ignored when posted.

Events of this type are raised after events of type MouseReleased if the mouse was not dragged.

Since events of this type are not raised by the OS, suppressing them has no effect.

MouseDragged = 10

Raised when the mouse is dragged. Not recommended to post as it will be the same as MouseMoved.

MouseMoved = 9

Raised when the mouse is moved or posted to move the mouse.

MouseMovedRelativeToCursor = 14

Posted to move the mouse relative to the current cursor position. Never raised.

MousePressed = 7

Raised when a mouse button is pressed (its state changed from up to down) or posted to press a mouse button.

MousePressedIgnoreCoordinates = 12

Posted to press a mouse button at the current coordinates. Never raised.

MouseReleased = 8

Raised when a mouse button is released (its state changed from down to up) or posted to release a mouse button.

MouseReleasedIgnoreCoordinates = 13

Posted to release a mouse button at the current coordinates. Never raised.

MouseWheel = 11

Raised when the mouse wheel is scrolled or posted to scroll the mouse wheel.

See Also