public class ClickMouseEvent extends MouseEvent
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 |
---|
ClickMouseEvent(MouseDestination destination)
Creates an instance of this event, which performs a left button click
mouse event at the given destination, moving the mouse to the position as
necessary.
|
ClickMouseEvent(MouseDestination destination,
boolean rightClick)
Creates an instance of this event, which performs a click mouse event at
the given destination, using the left or right mouse button as specified,
moving the mouse to the position as necessary.
|
ClickMouseEvent(MouseDestination destination,
boolean rightClick,
int checkCrossHairColor)
Creates an instance of this event, which performs a click mouse event at
the given destination, using the left or right mouse button as specified,
moving the mouse to the position as necessary.
|
Modifier and Type | Method and Description |
---|---|
int |
execute()
This is the execution method.
|
void |
onEnd()
Called after this event is executed.
|
void |
onStart()
Called before this event is executed.
|
updateDestination
addChild, exchangeContext, getChildren, getMode, getParent, getStatus, hasFailed, hasFinished, interrupt, isQueued, isWorking, 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 ClickMouseEvent(MouseDestination destination)
destination
- The destination to click.public ClickMouseEvent(MouseDestination destination, boolean rightClick)
destination
- The destination to click.rightClick
- Whether to left or right click at the destination.public ClickMouseEvent(MouseDestination destination, boolean rightClick, int checkCrossHairColor)
destination
- The destination to click.rightClick
- Whether to left or right click at the destination.checkCrossHairColor
- Determines whether we check the cross hair color to help determine if the interaction was successful
-1: Don't check
0: cross hair color should be 0
1: cross hair color should be 1
2: cross hair color should be 2
Ignored if right-clickpublic void onStart()
Event
public void onEnd()
Event
public int execute() throws java.lang.InterruptedException
Event
onLoop()
in OSBot v1.