Package org.dreambot.api.methods.event
Class KeyboardEvent
- java.lang.Object
-
- org.dreambot.api.methods.event.KeyboardEvent
-
- All Implemented Interfaces:
java.lang.Runnable
@Deprecated public class KeyboardEvent extends java.lang.Object implements java.lang.Runnable
Deprecated.seeKeyboardEvent
-
-
Constructor Summary
Constructors Constructor Description KeyboardEvent(java.lang.String message, boolean enter)
Deprecated.KeyboardEvent(java.lang.String message, boolean enter, boolean mistakes)
Deprecated.KeyboardEvent(java.lang.String message, boolean enter, boolean mistake, Condition stopCondition)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
control(int eventType)
Deprecated.Pushes control and then sleeps for the calculated sleep time afterwardsvoid
control(int eventType, boolean sleep)
Deprecated.Pushes control with given event type and then sleeps for a calculated sleep time after pushing if the sleep arg is true.void
dispatchPressed(char character)
Deprecated.void
dispatchReleased(char character)
Deprecated.void
dispatchTyped(char character)
Deprecated.void
generateEvent()
Deprecated.java.lang.String
getMistake(char c)
Deprecated.java.lang.String
getRandomCharInString(java.lang.String string)
Deprecated.void
pressBackspace()
Deprecated.void
pressEnter()
Deprecated.void
pressEsc()
Deprecated.void
pressSpecialKey(int key)
Deprecated.void
run()
Deprecated.void
shift(int eventType)
Deprecated.Pushes shift and then sleeps for the calculated sleep time afterwardsvoid
shift(int eventType, boolean sleep)
Deprecated.Pushes shift with given event type and then sleeps for a calculated sleep time after pushing if the sleep arg is true.
-
-
-
Constructor Detail
-
KeyboardEvent
public KeyboardEvent(java.lang.String message, boolean enter)
Deprecated.
-
KeyboardEvent
public KeyboardEvent(java.lang.String message, boolean enter, boolean mistakes)
Deprecated.
-
KeyboardEvent
public KeyboardEvent(java.lang.String message, boolean enter, boolean mistake, Condition stopCondition)
Deprecated.
-
-
Method Detail
-
generateEvent
public void generateEvent()
Deprecated.
-
pressEnter
public void pressEnter()
Deprecated.
-
pressBackspace
public void pressBackspace()
Deprecated.
-
pressEsc
public void pressEsc()
Deprecated.
-
pressSpecialKey
public void pressSpecialKey(int key)
Deprecated.
-
shift
public void shift(int eventType)
Deprecated.Pushes shift and then sleeps for the calculated sleep time afterwards- Parameters:
eventType
- KEY_PRESSED or KEY_RELEASED
-
shift
public void shift(int eventType, boolean sleep)
Deprecated.Pushes shift with given event type and then sleeps for a calculated sleep time after pushing if the sleep arg is true. If it's false it does not sleep after the event.- Parameters:
eventType
- KEY_PRESSED or KEY_RELEASEDsleep
- true if you want it to sleep after sending the event, else false
-
control
public void control(int eventType)
Deprecated.Pushes control and then sleeps for the calculated sleep time afterwards- Parameters:
eventType
- KEY_PRESSED or KEY_RELEASED
-
control
public void control(int eventType, boolean sleep)
Deprecated.Pushes control with given event type and then sleeps for a calculated sleep time after pushing if the sleep arg is true. If it's false it does not sleep after the event.- Parameters:
eventType
- KEY_PRESSED or KEY_RELEASEDsleep
- true if you want it to sleep after sending the event, else false
-
dispatchPressed
public void dispatchPressed(char character)
Deprecated.
-
dispatchTyped
public void dispatchTyped(char character)
Deprecated.
-
dispatchReleased
public void dispatchReleased(char character)
Deprecated.
-
run
public void run()
Deprecated.- Specified by:
run
in interfacejava.lang.Runnable
-
getMistake
public java.lang.String getMistake(char c)
Deprecated.
-
getRandomCharInString
public java.lang.String getRandomCharInString(java.lang.String string)
Deprecated.
-
-