C# Class Binarysharp.MemoryManagement.Windows.Mouse.SendInputMouse

Class defining a virtual mouse using the API SendInput.
Inheritance: BaseMouse
Afficher le fichier Open project: ZenLulz/MemorySharp

Méthodes publiques

Méthode Description
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.

Méthodes protégées

Méthode Description
MoveToAbsolute ( int x, int y ) : void

Moves the cursor at the specified coordinate.

Private Methods

Méthode Description
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.

Method Details

MoveToAbsolute() protected méthode

Moves the cursor at the specified coordinate.
protected MoveToAbsolute ( int x, int y ) : void
x int The x-coordinate.
y int The y-coordinate.
Résultat void

PressLeft() public méthode

Presses the left button of the mouse at the current cursor position.
public PressLeft ( ) : void
Résultat void

PressMiddle() public méthode

Presses the middle button of the mouse at the current cursor position.
public PressMiddle ( ) : void
Résultat void

PressRight() public méthode

Presses the right button of the mouse at the current cursor position.
public PressRight ( ) : void
Résultat void

ReleaseLeft() public méthode

Releases the left button of the mouse at the current cursor position.
public ReleaseLeft ( ) : void
Résultat void

ReleaseMiddle() public méthode

Releases the middle button of the mouse at the current cursor position.
public ReleaseMiddle ( ) : void
Résultat void

ReleaseRight() public méthode

Releases the right button of the mouse at the current cursor position.
public ReleaseRight ( ) : void
Résultat void

ScrollHorizontally() public méthode

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.
Résultat void

ScrollVertically() public méthode

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.
Résultat void

SendInputMouse() public méthode

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.
Résultat Binarysharp.MemoryManagement.Native