public class TypeKeyEvent extends XKeyEvent
Event.EventMode, Event.EventStatus
bank, bot, camera, chatbox, client, colorPicker, combat, configs, depositBox, dialogues, diaries, display, doorHandler, equipment, experienceTracker, favour, grandExchange, graphicObjects, groundItems, hintArrow, inventory, keyboard, logger, logoutTab, magic, map, menu, mouse, npcs, objects, players, prayer, projectiles, quests, settings, skills, store, tabs, trade, walking, widgets, worlds
Constructor and Description |
---|
TypeKeyEvent(char key,
int mods,
int time,
boolean enter)
Creates a type key event.
|
Modifier and Type | Method and Description |
---|---|
int |
execute()
This is the execution method.
|
disableSemaphoreAcquisition
addChild, exchangeContext, getChildren, getMode, getParent, getStatus, hasFailed, hasFinished, interrupt, isQueued, isWorking, onEnd, onStart, removeChild, setAsync, setBlocking, setFailed, setFinished, setParent
execute, getBank, getBot, getCamera, getChatbox, getClient, getColorPicker, getCombat, getConfigs, getDepositBox, getDialogues, getDiaries, getDisplay, getDoorHandler, getEquipment, getExperienceTracker, getFavour, getGrandExchange, getGraphicObjects, getGroundItems, getHintArrow, getInventory, getKeyboard, getLogoutTab, getMagic, getMap, getMenuAPI, getMouse, getNpcs, getObjects, getPlayers, getPrayer, getProjectiles, getQuests, getSettings, getSkills, getStore, getTabs, getTrade, getWalking, getWidgets, getWorlds, gRandom, gRandom, gRandom, initializeContext, log, log, myPlayer, myPosition, random, random, sleep, stripFormatting, warn
public TypeKeyEvent(char key, int mods, int time, boolean enter)
key
- The key to type.mods
- The key event modifiers.time
- The time to hold the key for. Values above 498 will make the key hold for multiple characters to be output.enter
- Whether to finish up with the enter key.public int execute() throws java.lang.InterruptedException
Event
onLoop()
in OSBot v1.