Class Mouse
A class that enables low-level mouse device operations. When working in a grid configuration, use Mouse in order to get the IMouseDevice object, which enables mouse operations on a specific environment or grid node.
Inherited Members
Namespace: HP.LFT.SDK
Assembly: HP.LFT.SDK.dll
Syntax
public class Mouse
Constructors
Mouse()
Declaration
public Mouse()
Methods
ButtonDown(Point, MouseButton)
Presses the specified mouse button at the specified point on the screen.
Declaration
public static 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
public static 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
public static 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
public static 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
public static 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
public static void Move(Point point)
Parameters
| Type | Name | Description |
|---|---|---|
| Point | point | The Point on the screen to place the mouse pointer. |