C# Класс Binarysharp.MemoryManagement.Windows.Mouse.SendInputMouse

Class defining a virtual mouse using the API SendInput.
Наследование: BaseMouse
Показать файл Открыть проект

Открытые методы

Метод Описание
PressLeft ( ) : void

Presses the left button of the mouse at the current cursor position.

PressMiddle ( ) : void

Presses the middle button of the mouse at the current cursor position.

PressRight ( ) : void

Presses the right button of the mouse at the current cursor position.

ReleaseLeft ( ) : void

Releases the left button of the mouse at the current cursor position.

ReleaseMiddle ( ) : void

Releases the middle button of the mouse at the current cursor position.

ReleaseRight ( ) : void

Releases the right button of the mouse at the current cursor position.

ScrollHorizontally ( int delta = 120 ) : void

Scrolls horizontally using the wheel of the mouse at the current cursor position.

ScrollVertically ( int delta = 120 ) : void

Scrolls vertically using the wheel of the mouse at the current cursor position.

SendInputMouse ( RemoteWindow window ) : Binarysharp.MemoryManagement.Native

Initializes a new instance of a child of the SendInputMouse class.

Защищенные методы

Метод Описание
MoveToAbsolute ( int x, int y ) : void

Moves the cursor at the specified coordinate.

Приватные методы

Метод Описание
CalculateAbsoluteCoordinateX ( int x ) : int

Calculates the x-coordinate with the system metric.

CalculateAbsoluteCoordinateY ( int y ) : int

Calculates the y-coordinate with the system metric.

CreateInput ( ) : Input

Create an Input structure for mouse event.

Описание методов

MoveToAbsolute() защищенный Метод

Moves the cursor at the specified coordinate.
protected MoveToAbsolute ( int x, int y ) : void
x int The x-coordinate.
y int The y-coordinate.
Результат void

PressLeft() публичный Метод

Presses the left button of the mouse at the current cursor position.
public PressLeft ( ) : void
Результат void

PressMiddle() публичный Метод

Presses the middle button of the mouse at the current cursor position.
public PressMiddle ( ) : void
Результат void

PressRight() публичный Метод

Presses the right button of the mouse at the current cursor position.
public PressRight ( ) : void
Результат void

ReleaseLeft() публичный Метод

Releases the left button of the mouse at the current cursor position.
public ReleaseLeft ( ) : void
Результат void

ReleaseMiddle() публичный Метод

Releases the middle button of the mouse at the current cursor position.
public ReleaseMiddle ( ) : void
Результат void

ReleaseRight() публичный Метод

Releases the right button of the mouse at the current cursor position.
public ReleaseRight ( ) : void
Результат void

ScrollHorizontally() публичный Метод

Scrolls horizontally using the wheel of the mouse at the current cursor position.
public ScrollHorizontally ( int delta = 120 ) : void
delta int The amount of wheel movement.
Результат void

ScrollVertically() публичный Метод

Scrolls vertically using the wheel of the mouse at the current cursor position.
public ScrollVertically ( int delta = 120 ) : void
delta int The amount of wheel movement.
Результат void

SendInputMouse() публичный Метод

Initializes a new instance of a child of the SendInputMouse class.
public SendInputMouse ( RemoteWindow window ) : Binarysharp.MemoryManagement.Native
window RemoteWindow The reference of the object.
Результат Binarysharp.MemoryManagement.Native