public class RobotUtils extends Object
| Constructor and Description |
|---|
RobotUtils() |
| Modifier and Type | Method and Description |
|---|---|
static int |
getKeyCode(char character)
Gets the key code from the given char.
|
static void |
typeCharacter(Robot robot,
char character)
Types the given char with the given robot.
|
static void |
typeString(Robot robot,
String input)
Type the given string with the given robot.
|
public static int getKeyCode(char character)
throws IllegalAccessException,
NoSuchFieldException
character - the characterIllegalAccessException - the illegal access exceptionNoSuchFieldException - the no such field exceptionpublic static void typeCharacter(Robot robot, char character) throws IllegalAccessException, NoSuchFieldException
robot - the robotcharacter - the characterIllegalAccessException - the illegal access exceptionNoSuchFieldException - the no such field exceptionpublic static void typeString(Robot robot, String input) throws NoSuchFieldException, IllegalAccessException
robot - the robotinput - the inputNoSuchFieldException - the no such field exceptionIllegalAccessException - the illegal access exceptionCopyright © 2007–2015 Alpha Ro Group UG (haftungsbeschrÀngt). All rights reserved.