C# 클래스 Interceptor.Input

파일 보기 프로젝트 열기: jasonpang/Interceptor 1 사용 예제들

공개 메소드들

메소드 설명
Input ( ) : System
Load ( ) : bool
MoveMouseBy ( int deltaX, int deltaY, bool useDriver = false ) : void

Warning: This function, if using the driver, does not function reliably and often moves the mouse in unpredictable vectors. An alternate version uses the standard Win32 API to get the current cursor's position, calculates the desired destination's offset, and uses the Win32 API to set the cursor to the new position.

MoveMouseTo ( int x, int y, bool useDriver = false ) : void

Warning: This function, if using the driver, does not function reliably and often moves the mouse in unpredictable vectors. An alternate version uses the standard Win32 API to set the cursor's position and does not use the driver.

ScrollMouse ( ScrollDirection direction ) : void
SendKey ( Keys key ) : void

Warning: Do not use this overload of SendKey() for non-letter, non-number, or non-ENTER keys. It may require a special KeyState of not KeyState.Down or KeyState.Up, but instead KeyState.E0 and KeyState.E1.

SendKey ( Keys key, KeyState state ) : void
SendKeys ( ) : void
SendLeftClick ( ) : void
SendMouseEvent ( MouseState state ) : void
SendRightClick ( ) : void
SendText ( string text ) : void

Warning: Only use this overload for sending letters, numbers, and symbols (those to the right of the letters on a U.S. keyboard and those obtained by pressing shift-#). Do not send special keys like Tab or Control or Enter.

Unload ( ) : void

비공개 메소드들

메소드 설명
CharacterToKeysEnum ( char c ) : bool>.Tuple

Converts a character to a Keys enum and a 'do we need to press shift'.

DriverCallback ( ) : void

메소드 상세

Input() 공개 메소드

public Input ( ) : System
리턴 System

Load() 공개 메소드

public Load ( ) : bool
리턴 bool

MoveMouseBy() 공개 메소드

Warning: This function, if using the driver, does not function reliably and often moves the mouse in unpredictable vectors. An alternate version uses the standard Win32 API to get the current cursor's position, calculates the desired destination's offset, and uses the Win32 API to set the cursor to the new position.
public MoveMouseBy ( int deltaX, int deltaY, bool useDriver = false ) : void
deltaX int
deltaY int
useDriver bool
리턴 void

MoveMouseTo() 공개 메소드

Warning: This function, if using the driver, does not function reliably and often moves the mouse in unpredictable vectors. An alternate version uses the standard Win32 API to set the cursor's position and does not use the driver.
public MoveMouseTo ( int x, int y, bool useDriver = false ) : void
x int
y int
useDriver bool
리턴 void

ScrollMouse() 공개 메소드

public ScrollMouse ( ScrollDirection direction ) : void
direction ScrollDirection
리턴 void

SendKey() 공개 메소드

Warning: Do not use this overload of SendKey() for non-letter, non-number, or non-ENTER keys. It may require a special KeyState of not KeyState.Down or KeyState.Up, but instead KeyState.E0 and KeyState.E1.
public SendKey ( Keys key ) : void
key Keys
리턴 void

SendKey() 공개 메소드

public SendKey ( Keys key, KeyState state ) : void
key Keys
state KeyState
리턴 void

SendKeys() 공개 메소드

public SendKeys ( ) : void
리턴 void

SendLeftClick() 공개 메소드

public SendLeftClick ( ) : void
리턴 void

SendMouseEvent() 공개 메소드

public SendMouseEvent ( MouseState state ) : void
state MouseState
리턴 void

SendRightClick() 공개 메소드

public SendRightClick ( ) : void
리턴 void

SendText() 공개 메소드

Warning: Only use this overload for sending letters, numbers, and symbols (those to the right of the letters on a U.S. keyboard and those obtained by pressing shift-#). Do not send special keys like Tab or Control or Enter.
public SendText ( string text ) : void
text string
리턴 void

Unload() 공개 메소드

public Unload ( ) : void
리턴 void