Interface IMouseDevice
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
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.
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.
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.
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.
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.
void Move(Point point)