C# Class Eryan.Input.KeyBoard

Keyboard input device
Inheritance: Eryan.Input.InputDevice
Mostrar archivo Open project: emist/Eryan Class Usage Examples

Public Properties

Property Type Description
keytranslator VKeysScan>.Dictionary

Public Methods

Method Description
KeyBoard ( ) : System
keyDown ( char key ) : void
keyUp ( char key ) : void
pressEnter ( ) : void

Sends an Enter key to EVE

sendAltCharacter ( char c ) : void

Sends the given character with the alt key pressed

sendChar ( char c ) : void

Sends the given keypress to the EVE client

sendCtrlCharacter ( char c ) : void

Sends the given character with the control key pressed

sendFKey ( int key ) : void
sendKeyPresses ( String text ) : void

Sends keypresses to the EVE client with a static wait between keypresses

sendKeyPresses ( String text, int minWait, int maxWait ) : void

Sends a string of keys to the Eve Client with a random wait

Private Methods

Method Description
VkKeyScan ( char ch ) : IntPtr
populateTranslator ( ) : void

Method Details

KeyBoard() public method

public KeyBoard ( ) : System
return System

keyDown() public method

public keyDown ( char key ) : void
key char
return void

keyUp() public method

public keyUp ( char key ) : void
key char
return void

pressEnter() public method

Sends an Enter key to EVE
public pressEnter ( ) : void
return void

sendAltCharacter() public method

Sends the given character with the alt key pressed
public sendAltCharacter ( char c ) : void
c char The character to send
return void

sendChar() public method

Sends the given keypress to the EVE client
public sendChar ( char c ) : void
c char
return void

sendCtrlCharacter() public method

Sends the given character with the control key pressed
public sendCtrlCharacter ( char c ) : void
c char Character to send with control
return void

sendFKey() public method

public sendFKey ( int key ) : void
key int
return void

sendKeyPresses() public method

Sends keypresses to the EVE client with a static wait between keypresses
public sendKeyPresses ( String text ) : void
text String The text to send
return void

sendKeyPresses() public method

Sends a string of keys to the Eve Client with a random wait
public sendKeyPresses ( String text, int minWait, int maxWait ) : void
text String The string to enter
minWait int The minimum time to wait between keypresses in miliseconds
maxWait int The maximum time to wait between keypresses in miliseconds
return void

Property Details

keytranslator public_oe property

public Dictionary keytranslator
return VKeysScan>.Dictionary