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.
public class Mouse
- Inheritance
-
Mouse
- Inherited Members
Constructors
Mouse()
public Mouse()
Methods
ButtonDown(Point, MouseButton)
Presses the specified mouse button at the specified point on the screen.
public static void ButtonDown(Point point, MouseButton button = MouseButton.Left)
Parameters
pointPointThe Point where the mouse button is pressed.
buttonMouseButtonOptional. 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.
public static void ButtonUp(Point point, MouseButton button = MouseButton.Left)
Parameters
pointPointThe Point where the mouse button is released.
buttonMouseButtonOptional. 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.
public static void Click(Point point, MouseButton button = MouseButton.Left)
Parameters
pointPointThe Point on the screen to place the mouse pointer.
buttonMouseButtonOptional. 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.
public static void DoubleClick(Point point, MouseButton button = MouseButton.Left)
Parameters
pointPointThe Point on the screen to place the mouse pointer.
buttonMouseButtonOptional. 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.
public static void DragAndDrop(Point fromPoint, Point toPoint, MouseButton button = MouseButton.Left)
Parameters
fromPointPointThe Point from which to perform the drag and drop operation.
toPointPointThe Point where the drag ends and the mouse button is released.
buttonMouseButtonOptional. 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.
public static void Move(Point point)