Table of Contents

Interface IMouseController

Namespace
NetAutoGUI
Assembly
NetAutoGUI.dll

Mouse controller, used for simulating mouse events

public interface IMouseController

Methods

Click(int?, int?, MouseButtonType, int, double)

Simulate a single mouse click.

void Click(int? x = null, int? y = null, MouseButtonType button = MouseButtonType.Left, int clicks = 1, double intervalInSeconds = 0)

Parameters

x int?

mouse x. The default value is current mouse x.

y int?

mouse y. The default value is current mouse y.

button MouseButtonType

which mouse button to click

clicks int

click count

intervalInSeconds double

interval in seconds between clicks

DoubleClick(int?, int?, MouseButtonType, double)

Simulate a double mouse click.

void DoubleClick(int? x = null, int? y = null, MouseButtonType button = MouseButtonType.Left, double intervalInSeconds = 0)

Parameters

x int?

move mouse to (x,y), then click the button

y int?

move mouse to (x,y), then click the button

button MouseButtonType

which mouse button to click

intervalInSeconds double

interval in seconds

MouseDown(int?, int?, MouseButtonType)

Simulate a mouse down

void MouseDown(int? x = null, int? y = null, MouseButtonType button = MouseButtonType.Left)

Parameters

x int?

x

y int?

y

button MouseButtonType

which button

MouseUp(int?, int?, MouseButtonType)

Simulate a mouse up

void MouseUp(int? x = null, int? y = null, MouseButtonType button = MouseButtonType.Left)

Parameters

x int?

x

y int?

y

button MouseButtonType

which button

Move(int, int)

move the mouse cursor over a few pixels relative to its current position

void Move(int offsetX, int offsetY)

Parameters

offsetX int
offsetY int

MoveTo(int, int)

Move the mouse cursor to the specific location

void MoveTo(int x, int y)

Parameters

x int
y int

Position()

Get current location of the mouse cursor

Location Position()

Returns

Location

Scroll(int)

Scroll the mouse wheel

void Scroll(int value)

Parameters

value int

positive value is for scrolling up, negative is value for scrolling down