MouseHook Class

Note: This API is now obsolete.
A low level mouse hook that processes mouse input events.

Definition

Namespace: DevCase.Core.IO.Devices.Input
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[ObsoleteAttribute("This class is obsolete. Use 'DevCase.Core.IO.MouseMonitor' instead.", 
	false)]
public sealed class MouseHook : IDisposable
Inheritance
Object    MouseHook
Implements
IDisposable

Constructors

MouseHook Initializes a new instance of the mouseHook class.

Properties

IsEnabled Gets a value indicating whether the Hook is enabled.
IsInstalled Gets a value indicating whether the Hook is installed.
SuppressMouseButtonUpEventWhenDoubleClick ** ONLY FOR TESTING PURPOSES **

Gets or sets a value indicating whether to suppress the last MouseUp event of when a double-click occurs.

If this value is set to , the application will send the events in this order for a Double-Click:

MouseDown, MouseUp, MouseDown, MouseDoubleClick

If this value is set to , the application will send the events in this order for a Double-Click: MouseDown, MouseUp, MouseDown, MouseUp, MouseDoubleClick

WorkingArea Gets or sets the screen's working area on which to notify about mouse events.

The events fired by this mouseHook will be restricted to the bounds of the specified rectangle.

Methods

Disable Temporally disables the Mouse Hook events.

To re-enable the events, call the Enable method.

Dispose Releases all the resources used by this instance.
Enable Enables the Mouse Hook events.
Equals Determines whether the specified object is equal to the current object.
(Inherited from Object)
GetHashCode Serves as the default hash function.
(Inherited from Object)
GetType Gets the Type of the current instance.
(Inherited from Object)
Install Installs the Mouse Hook, then start processing messages to fire events.
ToString Returns a string that represents the current object.
(Inherited from Object)
Uninstall Uninstalls the Mouse Hook and free all resources, then stop processing messages to fire events.

Events

MouseButtonClick Occurs when a mouse button is pressed or released.
MouseButtonDoubleClick Occurs when the mouse performs a double-click on a button.

A double click is considered as: (MouseButtonDown + MouseButtonUp) * 2

MouseMove Occurs when the mouse moves.
MouseWheel Occurs when the mouse wheel is moved up or down.

Extension Methods

CanConvertTo Determines whether the source object can be converted to the specified target type.
(Defined by ObjectExtensions)
CanConvertToT Determines whether the source object can be converted to the specified target type.
(Defined by ObjectExtensions)
ConvertToT Converts an object to the specified target type.

If the conversion fails, an exception is thrown.
(Defined by ObjectExtensions)

ConvertToT Converts an object to the specified target type.

If the conversion fails, returns the specified default value.
(Defined by ObjectExtensions)

IsDisposable Determines whether the specified object is a disposable type (i.e., it implements IDisposable interface).
(Defined by ObjectExtensions)
Speak Speaks the string representation of the source object by using the operating system integrated text-to-speech synthesizer.
(Defined by ObjectExtensions)
Speak Speaks the string representation of the source object by using the operating system integrated text-to-speech synthesizer.
(Defined by ObjectExtensions)
ThrowIfNullTException Throws the specified exception if the source object is null.
(Defined by ObjectExtensions)

See Also