C# Class Interceptor.Input

Afficher le fichier Open project: jasonpang/Interceptor Class Usage Examples

Méthodes publiques

Méthode Description
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

Private Methods

Méthode Description
CharacterToKeysEnum ( char c ) : bool>.Tuple

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

DriverCallback ( ) : void

Method Details

Input() public méthode

public Input ( ) : System
Résultat System

Load() public méthode

public Load ( ) : bool
Résultat bool

MoveMouseBy() public méthode

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
Résultat void

MoveMouseTo() public méthode

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
Résultat void

ScrollMouse() public méthode

public ScrollMouse ( ScrollDirection direction ) : void
direction ScrollDirection
Résultat void

SendKey() public méthode

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
Résultat void

SendKey() public méthode

public SendKey ( Keys key, KeyState state ) : void
key Keys
state KeyState
Résultat void

SendKeys() public méthode

public SendKeys ( ) : void
Résultat void

SendLeftClick() public méthode

public SendLeftClick ( ) : void
Résultat void

SendMouseEvent() public méthode

public SendMouseEvent ( MouseState state ) : void
state MouseState
Résultat void

SendRightClick() public méthode

public SendRightClick ( ) : void
Résultat void

SendText() public méthode

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
Résultat void

Unload() public méthode

public Unload ( ) : void
Résultat void