Table of Contents

Interface IMouseDevice

Namespace
HP.LFT.SDK
Assembly
HP.LFT.SDK.dll

An interface that provides low-level mouse operations.

public interface IMouseDevice

Methods

ButtonDown(Point, MouseButton)

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

void ButtonDown(Point point, MouseButton button = MouseButton.Left)

Parameters

point Point

The Point where the mouse button is pressed.

button MouseButton

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.

void ButtonUp(Point point, MouseButton button = MouseButton.Left)

Parameters

point Point

The Point where the mouse button is released.

button MouseButton

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.

void Click(Point point, MouseButton button = MouseButton.Left)

Parameters

point Point

The Point on the screen to place the mouse pointer.

button MouseButton

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.

void DoubleClick(Point point, MouseButton button = MouseButton.Left)

Parameters

point Point

The Point on the screen to place the mouse pointer.

button MouseButton

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.

void DragAndDrop(Point fromPoint, Point toPoint, MouseButton button = MouseButton.Left)

Parameters

fromPoint Point

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

toPoint Point

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

button MouseButton

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.

void Move(Point point)

Parameters

point Point

The Point on the screen to place the mouse pointer.