public class ContinualTypeKeyEvent 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 |
---|
ContinualTypeKeyEvent(char key,
int mods,
boolean enter,
Condition condition)
Creates a continual type key event which holds its key for more than one stroke at least until the specified
condition evaluates to true.
|
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 ContinualTypeKeyEvent(char key, int mods, boolean enter, Condition condition)
key
- The key to type.mods
- The key event modifiers.enter
- Whether to finish up with the enter key.condition
- The condition for which as long as it evaluates to false the key will be held down.public int execute() throws java.lang.InterruptedException
Event
onLoop()
in OSBot v1.