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

Class defining a virtual mouse using the API SendInput.
Inheritance: BaseMouse
Show file Open project: ZenLulz/MemorySharp

Public Methods

Method 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.

Protected Methods

Method Description
MoveToAbsolute ( int x, int y ) : void

Moves the cursor at the specified coordinate.

Private Methods

Method 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 method

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

PressLeft() public method

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

PressMiddle() public method

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

PressRight() public method

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

ReleaseLeft() public method

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

ReleaseMiddle() public method

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

ReleaseRight() public method

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

ScrollHorizontally() public method

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.
return void

ScrollVertically() public method

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.
return void

SendInputMouse() public method

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.
return Binarysharp.MemoryManagement.Native