C# 클래스 Eryan.Input.Mouse

Mouse input device
상속: Eryan.Input.InputDevice
파일 보기 프로젝트 열기: emist/Eryan 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
X int
defRandX int
defRandY int
missChance int
screen System.Utils
speed int

공개 메소드들

메소드 설명
GetRandomNumber ( double minimum, double maximum ) : double
Mouse ( ) : System
WindMouse ( int xs, int ys, int xe, int ye, double gravity, double wind, double minWait, double maxWait, double maxStep, double targetArea ) : void

Insane mouse logic

atPosition ( int x, int y ) : bool

Check whether the mouse it at the given x and y coordinates

click ( bool leftClick ) : void
click ( bool leftClick, int move_after ) : void
click ( int x, int y, bool leftClick, int move_after ) : void

Clicks the given coordinates

cursorDistance ( Point p ) : int

Get how far the mouse is from the given point

cursorLocation ( ) : Point

The current cursor location

drag ( Point p ) : void
getSpeed ( ) : int

Gets the mouse speed

getX ( ) : int

Get mouse position on the X axis

getY ( ) : int

Get mouse position on the Y axis

holdLeftButton ( ) : void
holdRightButton ( ) : void
hypot ( double xs, double xe, double ys, double ye ) : double

Gets the hypotenuse of the triangle made by two points

move ( Point p ) : void

Mouse the mouse to the point

move ( Point p, int randX, int randY ) : void

Move the mouse to the given point with the given randomization

move ( Point p, int randX, int randY, int afterOffset ) : void

Move the mouse to the given point with randomization and movement after

move ( int speed, Point p ) : void

Move the mouse to a poitn with the given speed

move ( int x, int y, int randX, int randY ) : void

Move the mouse to the given coordinates with randomization

move ( int speed, int x, int y, int randX, int randY, int afterOffset ) : void

More insane mouse logic

moveMouse ( Point p ) : void

Move the mouse to Point p

releaseLeftButton ( ) : void
releaseRightButton ( ) : void
synchronize ( Mouse m ) : void

비공개 메소드들

메소드 설명
dllCalcTest ( IntPtr handle ) : void
dllMouseButtonDown ( IntPtr handle, bool left, int x, int y ) : void
dllMouseButtonUp ( IntPtr handle, bool left, int x, int y ) : void
dllMouseClick ( IntPtr handle, bool left, int x, int y ) : void
dllMoveMouse ( IntPtr handle, int x, int y ) : void

메소드 상세

GetRandomNumber() 공개 메소드

public GetRandomNumber ( double minimum, double maximum ) : double
minimum double
maximum double
리턴 double

Mouse() 공개 메소드

public Mouse ( ) : System
리턴 System

WindMouse() 공개 메소드

Insane mouse logic
public WindMouse ( int xs, int ys, int xe, int ye, double gravity, double wind, double minWait, double maxWait, double maxStep, double targetArea ) : void
xs int
ys int
xe int
ye int
gravity double
wind double
minWait double
maxWait double
maxStep double
targetArea double
리턴 void

atPosition() 공개 메소드

Check whether the mouse it at the given x and y coordinates
public atPosition ( int x, int y ) : bool
x int X coordinate to check
y int Y coordinate to check
리턴 bool

click() 공개 메소드

public click ( bool leftClick ) : void
leftClick bool
리턴 void

click() 공개 메소드

public click ( bool leftClick, int move_after ) : void
leftClick bool
move_after int
리턴 void

click() 공개 메소드

Clicks the given coordinates
public click ( int x, int y, bool leftClick, int move_after ) : void
x int The position in the x axis to click
y int The position in the y axis to click
leftClick bool Whether its a left click or right click
move_after int How much it should move after clicking
리턴 void

cursorDistance() 공개 메소드

Get how far the mouse is from the given point
public cursorDistance ( Point p ) : int
p Point The point to test against
리턴 int

cursorLocation() 공개 메소드

The current cursor location
public cursorLocation ( ) : Point
리턴 Point

drag() 공개 메소드

public drag ( Point p ) : void
p Point
리턴 void

getSpeed() 공개 메소드

Gets the mouse speed
public getSpeed ( ) : int
리턴 int

getX() 공개 메소드

Get mouse position on the X axis
public getX ( ) : int
리턴 int

getY() 공개 메소드

Get mouse position on the Y axis
public getY ( ) : int
리턴 int

holdLeftButton() 공개 메소드

public holdLeftButton ( ) : void
리턴 void

holdRightButton() 공개 메소드

public holdRightButton ( ) : void
리턴 void

hypot() 공개 메소드

Gets the hypotenuse of the triangle made by two points
public hypot ( double xs, double xe, double ys, double ye ) : double
xs double X coordinate of point 1
xe double X coordinate of point 2
ys double Y coordinate of point 1
ye double Y coordinate of point 2
리턴 double

move() 공개 메소드

Mouse the mouse to the point
public move ( Point p ) : void
p Point Point to move to
리턴 void

move() 공개 메소드

Move the mouse to the given point with the given randomization
public move ( Point p, int randX, int randY ) : void
p Point The point to move to
randX int The deviation along the X axis
randY int The deviation along the Y axis
리턴 void

move() 공개 메소드

Move the mouse to the given point with randomization and movement after
public move ( Point p, int randX, int randY, int afterOffset ) : void
p Point The point to move
randX int The deviation along the X axis
randY int The deviation along the Y axis
afterOffset int How much to move by after it gets there
리턴 void

move() 공개 메소드

Move the mouse to a poitn with the given speed
public move ( int speed, Point p ) : void
speed int The speed at which to move
p Point The point to move to
리턴 void

move() 공개 메소드

Move the mouse to the given coordinates with randomization
public move ( int x, int y, int randX, int randY ) : void
x int The position in the x axis to move to
y int The position in the y axis to move to
randX int The random deviation along the X axis
randY int The random deviation along the Y axis
리턴 void

move() 공개 메소드

More insane mouse logic
public move ( int speed, int x, int y, int randX, int randY, int afterOffset ) : void
speed int
x int
y int
randX int
randY int
afterOffset int
리턴 void

moveMouse() 공개 메소드

Move the mouse to Point p
public moveMouse ( Point p ) : void
p Point The point to move the mouse to
리턴 void

releaseLeftButton() 공개 메소드

public releaseLeftButton ( ) : void
리턴 void

releaseRightButton() 공개 메소드

public releaseRightButton ( ) : void
리턴 void

synchronize() 공개 메소드

public synchronize ( Mouse m ) : void
m Mouse
리턴 void

프로퍼티 상세

X 보호되어 있는 프로퍼티

protected int X
리턴 int

defRandX 보호되어 있는 프로퍼티

protected int defRandX
리턴 int

defRandY 보호되어 있는 프로퍼티

protected int defRandY
리턴 int

missChance 보호되어 있는 프로퍼티

protected int missChance
리턴 int

screen 보호되어 있는 프로퍼티

protected Utils,System screen
리턴 System.Utils

speed 보호되어 있는 프로퍼티

protected int speed
리턴 int