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.RunnableDeprecated.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 voidcontrol(int eventType)Deprecated.Pushes control and then sleeps for the calculated sleep time afterwardsvoidcontrol(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.voiddispatchPressed(char character)Deprecated.voiddispatchReleased(char character)Deprecated.voiddispatchTyped(char character)Deprecated.voidgenerateEvent()Deprecated.java.lang.StringgetMistake(char c)Deprecated.java.lang.StringgetRandomCharInString(java.lang.String string)Deprecated.voidpressBackspace()Deprecated.voidpressEnter()Deprecated.voidpressEsc()Deprecated.voidpressSpecialKey(int key)Deprecated.voidrun()Deprecated.voidshift(int eventType)Deprecated.Pushes shift and then sleeps for the calculated sleep time afterwardsvoidshift(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:
runin interfacejava.lang.Runnable
-
getMistake
public java.lang.String getMistake(char c)
Deprecated.
-
getRandomCharInString
public java.lang.String getRandomCharInString(java.lang.String string)
Deprecated.
-
-