Skip to content
View in the app

A better way to browse. Learn more.

OSBot :: 2007 OSRS Botting

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

2.3.48: MouseDestination bug

Featured Replies

OSBot version number:

2.3.48

Description of the bug/error:

A MouseDestination retrieved from inventory#getMouseDestination(slot) will close a bank window before execution, as it apparently now deems that the inventory is inaccessible while the bank is open. I'm guessing you've added an internal tab variable in some implementations of MouseDestination recently?

Anyhow. This prevents mouse#click(destination, true/false) from being usable with the previously mentioned mousedestination while the bank is open.

Instructions how to replicate the bug/error:

Open bank -> get a MouseDestination using inventory#getMouseDestination(slot) -> click at the destination using mouse#click(destination)

(IF APPLICABLE) SSCCE that causes the bug/error:

(IF APPLICABLE) Script name ran causing the bug/error. Optionally include relevant parts of source code:

Code that caused the error (Not working):

	public boolean fastDeposit(int id, String action) throws InterruptedException {
		int _slot = inv().getSlot(id);
		boolean left = action.equals("Deposit-1");
		MouseDestination dest = inv().getMouseDestination(_slot);
		boolean click = parent.getMouse().click(dest, !left);
		if (left) {
			return click;
		}
		Menu menu;
		if (click && (menu = Menu.getActiveMenu(parent)) != null && menu.hasOption(action, null)) {
			FrostBarrow.sleep(random(100, 150));
			if (menu.isMouseOnOption(action, null)) {
				parent.getMouse().click(false);
				return true;
			} else {
				return menu.moveMouseToOption(action, null, true);
			}
		}
		return false;
	}


Temporary workaround (working):

	public boolean fastDeposit(int id, String action) throws InterruptedException {
		int _slot = inv().getSlot(id);
		boolean left = action.equals("Deposit-1");
		MouseDestination dest = inv().getMouseDestination(_slot);
		MouseDestination rDest = new RectangleDestination(parent.getBot(), dest.getBoundingBox());
		boolean click = parent.getMouse().click(rDest, !left);
		if (left) {
			return click;
		}
		Menu menu;
		if (click && (menu = Menu.getActiveMenu(parent)) != null && menu.hasOption(action, null)) {
			FrostBarrow.sleep(random(100, 150));
			if (menu.isMouseOnOption(action, null)) {
				parent.getMouse().click(false);
				return true;
			} else {
				return menu.moveMouseToOption(action, null, true);
			}
		}
		return false;
	}


(IF APPLICABLE) Screenshots:

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.