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

Abstract class defining a virtual mouse.
Show file Open project: ZenLulz/MemorySharp

Protected Properties

Property Type Description
Window RemoteWindow

Public Methods

Method Description
ClickLeft ( ) : void

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

ClickMiddle ( ) : void

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

ClickRight ( ) : void

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

DoubleClickLeft ( ) : void

Double clicks the left button of the mouse at the current cursor position.

MoveTo ( int x, int y ) : void

Moves the cursor at the specified coordinate from the position of the window.

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.

Protected Methods

Method Description
BaseMouse ( RemoteWindow window ) : System.Threading

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

MoveToAbsolute ( int x, int y ) : void

Moves the cursor at the specified coordinate.

Method Details

BaseMouse() protected method

Initializes a new instance of a child of the BaseMouse class.
protected BaseMouse ( RemoteWindow window ) : System.Threading
window RemoteWindow The reference of the object.
return System.Threading

ClickLeft() public method

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

ClickMiddle() public method

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

ClickRight() public method

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

DoubleClickLeft() public method

Double clicks the left button of the mouse at the current cursor position.
public DoubleClickLeft ( ) : void
return void

MoveTo() public method

Moves the cursor at the specified coordinate from the position of the window.
public MoveTo ( int x, int y ) : void
x int The x-coordinate.
y int The y-coordinate.
return void

MoveToAbsolute() protected abstract method

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

PressLeft() public abstract method

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

PressMiddle() public abstract method

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

PressRight() public abstract method

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

ReleaseLeft() public abstract method

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

ReleaseMiddle() public abstract method

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

ReleaseRight() public abstract method

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

ScrollHorizontally() public abstract method

Scrolls horizontally using the wheel of the mouse at the current cursor position.
public abstract ScrollHorizontally ( int delta = 120 ) : void
delta int The amount of wheel movement.
return void

ScrollVertically() public abstract method

Scrolls vertically using the wheel of the mouse at the current cursor position.
public abstract ScrollVertically ( int delta = 120 ) : void
delta int The amount of wheel movement.
return void

Property Details

Window protected property

The reference of the RemoteWindow object.
protected RemoteWindow Window
return RemoteWindow