C# Class GR.Input.Mouse

ファイルを表示 Open project: alexhanh/Botting-Library

Public Methods

Method Description
Click ( Point point, MouseButton mouse_button ) : void

Clicks target point relative to window set.

Click ( Point point, int max_dist, MouseButton mouse_button ) : void

Clicks inside a circle defined by the center of the circle as point and maximum distance as the radius. Uses the ellipse distribution.

CursorPos ( ) : Point
Drag ( Point start, Point end, MouseButton mouse_button ) : void
GetPixel ( double x, double y ) : Point
Move ( Point point ) : void
MoveClick ( Point point, int max_dist, MouseButton mouse_button ) : void
MoveClick ( Rectangle rectangle, MouseButton mouse_button ) : void
MoveClick ( Rectangle rectangle, Window parent_window, MouseButton mouse_button ) : void

Clicks inside a rectangle relative to the parent window and uses the rectangular distribution attached.

MovePauseClick ( Point point, int max_dist, MouseButton mouse_button, int pause ) : void
MovePauseClick ( Rectangle rectangle, MouseButton mouse_button, int pause ) : void
SetClickDistributions ( ClickDistribution rect, ClickDistribution ellipse ) : void
SetPosition ( Point screen_point ) : void
SetWindow ( Window window ) : void
SlowDrag ( Point start, Point end, MouseButton mouse_button ) : void
ToScreenAbs ( Point point ) : Point

Private Methods

Method Description
GetWindowRect ( IntPtr hwnd ) : Rectangle
SendInput ( uint nInputs, INPUT pInputs, int cbSize ) : uint
SetButton ( MouseButton mouse_button, bool press ) : void
ToScreen ( Point point ) : Point

Method Details

Click() public static method

Clicks target point relative to window set.
public static Click ( Point point, MouseButton mouse_button ) : void
point Point
mouse_button MouseButton Mouse button (MouseButtons.Left or MouseButtons.Right)
return void

Click() public static method

Clicks inside a circle defined by the center of the circle as point and maximum distance as the radius. Uses the ellipse distribution.
public static Click ( Point point, int max_dist, MouseButton mouse_button ) : void
point Point
max_dist int
mouse_button MouseButton
return void

CursorPos() public static method

public static CursorPos ( ) : Point
return Point

Drag() public static method

public static Drag ( Point start, Point end, MouseButton mouse_button ) : void
start Point
end Point
mouse_button MouseButton
return void

GetPixel() public static method

public static GetPixel ( double x, double y ) : Point
x double
y double
return Point

Move() public static method

public static Move ( Point point ) : void
point Point
return void

MoveClick() public static method

public static MoveClick ( Point point, int max_dist, MouseButton mouse_button ) : void
point Point
max_dist int
mouse_button MouseButton
return void

MoveClick() public static method

public static MoveClick ( Rectangle rectangle, MouseButton mouse_button ) : void
rectangle System.Drawing.Rectangle
mouse_button MouseButton
return void

MoveClick() public static method

Clicks inside a rectangle relative to the parent window and uses the rectangular distribution attached.
public static MoveClick ( Rectangle rectangle, Window parent_window, MouseButton mouse_button ) : void
rectangle System.Drawing.Rectangle
parent_window GR.Win32.Window
mouse_button MouseButton
return void

MovePauseClick() public static method

public static MovePauseClick ( Point point, int max_dist, MouseButton mouse_button, int pause ) : void
point Point
max_dist int
mouse_button MouseButton
pause int
return void

MovePauseClick() public static method

public static MovePauseClick ( Rectangle rectangle, MouseButton mouse_button, int pause ) : void
rectangle System.Drawing.Rectangle
mouse_button MouseButton
pause int
return void

SetClickDistributions() public static method

public static SetClickDistributions ( ClickDistribution rect, ClickDistribution ellipse ) : void
rect ClickDistribution
ellipse ClickDistribution
return void

SetPosition() public static method

public static SetPosition ( Point screen_point ) : void
screen_point Point
return void

SetWindow() public static method

public static SetWindow ( Window window ) : void
window GR.Win32.Window
return void

SlowDrag() public static method

public static SlowDrag ( Point start, Point end, MouseButton mouse_button ) : void
start Point
end Point
mouse_button MouseButton
return void

ToScreenAbs() public static method

public static ToScreenAbs ( Point point ) : Point
point Point
return Point