Table of Contents

Interface IMouseDevice

An interface that provides low-level mouse operations.

Namespace: HP.LFT.SDK
Assembly: HP.LFT.SDK.dll
Syntax
public interface IMouseDevice

Methods

ButtonDown(Point, MouseButton)

Presses the specified mouse button at the specified point on the screen.

Declaration
void ButtonDown(Point point, MouseButton button = MouseButton.Left)
Parameters
Type Name Description
Point point

The Point where the mouse button is pressed.

MouseButton button

Optional. The mouse button to press. Possible Values: MouseButton. Default = MouseButton.Left.

ButtonUp(Point, MouseButton)

Releases the specified mouse button at the specified point on the screen.

Declaration
void ButtonUp(Point point, MouseButton button = MouseButton.Left)
Parameters
Type Name Description
Point point

The Point where the mouse button is released.

MouseButton button

Optional. The mouse button to release. Possible Values: MouseButton. Default = MouseButton.Left.

Click(Point, MouseButton)

Moves the mouse to the specified point on the screen and clicks the specified mouse button.

Declaration
void Click(Point point, MouseButton button = MouseButton.Left)
Parameters
Type Name Description
Point point

The Point on the screen to place the mouse pointer.

MouseButton button

Optional. The mouse button that performs the click. Possible Values: MouseButton. Default = MouseButton.Left.

DoubleClick(Point, MouseButton)

Moves the mouse to the specified point on the screen and double-clicks the specified mouse button.

Declaration
void DoubleClick(Point point, MouseButton button = MouseButton.Left)
Parameters
Type Name Description
Point point

The Point on the screen to place the mouse pointer.

MouseButton button

Optional. The mouse button that performs the double-click. Possible Values: MouseButton. Default = MouseButton.Left.

DragAndDrop(Point, Point, MouseButton)

Drags the mouse from and to the specified points while the specified mouse button is pressed, and then releases the mouse button.

Declaration
void DragAndDrop(Point fromPoint, Point toPoint, MouseButton button = MouseButton.Left)
Parameters
Type Name Description
Point fromPoint

The Point from which to perform the drag and drop operation.

Point toPoint

The Point where the drag ends and the mouse button is released.

MouseButton button

Optional. The mouse button that is pressed during the drag operation. Possible Values: MouseButton. Default = MouseButton.Left.

Move(Point)

Moves the mouse to the specified point on the screen.

Declaration
void Move(Point point)
Parameters
Type Name Description
Point point

The Point on the screen to place the mouse pointer.