Jump 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.

Select Menu option

Featured Replies

I cant for the life of my figure out how to manually select a menu option.

I can get the menu options but how do i move the mouse to the correct option that i want

 

Edit:

 

I think im on the right track now

 

I get the list of options 

figure out what position the option is at based on the action i want to do 

move the mouse down based on the position of the action

Edited by twiztid4life

Yeah, you had it figured out precisely.

 

Here's a custom snippet (Credits go to Toph): 

	public boolean selectMenuOption(String action, String noun) throws InterruptedException
	{
		if (!s.client.isMenuOpen()) return false;
		boolean found = false;
		int index = 0;
		List<Option> menu = s.client.getMenu();
		for (; index < menu.size(); index++)
		{
			if (menu.get(index).action.equals(action) && menu.get(index).noun.contains(noun))
			{
				found = true;
				break;
			}
		}
		if (found)
		{
			int x = s.client.getMenuX();
			int y = s.client.getMenuY() + 21 + index * 14;
			return s.client.moveMouseTo(new RectangleDestination(x, y, s.client.getMenuWidth(), 10), false, true, false);
		}
		s.moveMouseOutsideScreen();
		return false;
	}

Edited by Deffiliate

 

Yeah, you had it figured out precisely.

 

Here's a custom snippet (Credits go to Toph): 

	public boolean selectMenuOption(String action, String noun) throws InterruptedException
	{
		if (!s.client.isMenuOpen()) return false;
		boolean found = false;
		int index = 0;
		List<Option> menu = s.client.getMenu();
		for (; index < menu.size(); index++)
		{
			if (menu.get(index).action.equals(action) && menu.get(index).noun.contains(noun))
			{
				found = true;
				break;
			}
		}
		if (found)
		{
			int x = s.client.getMenuX();
			int y = s.client.getMenuY() + 21 + index * 14;
			return s.client.moveMouseTo(new RectangleDestination(x, y, s.client.getMenuWidth(), 10), false, true, false);
		}
		s.moveMouseOutsideScreen();
		return false;
	}

 

It's + 19 + index * 15 actually.

Guest
This topic is now closed to further replies.

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

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.