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.

client.selectOption alt

Featured Replies

seems like i can find an alternative for everything else when

updating my scripts but can't find this.

I remember having to do this, I can't remember what I figured out though.

 

menu.getMenu() returns a list of the options.

seems like i can find an alternative for everything else when

updating my scripts but can't find this.

Are you trying to choose an action from a menu list? If so, I got you with a snippet in a little

Dialogues#selectOption(int choice, int choices)

Dialogues#selectOption(String... option)

 

are these not what you're looking for?

  • Author

Dialogues#selectOption(int choice, int choices)

Dialogues#selectOption(String... option)

 

are these not what you're looking for?

I have no idea why i didnt consider it, but i think that might be the chatbox.

and the one i want is select option for the Menu.

I have no idea why i didnt consider it, but i think that might be the chatbox.

and the one i want is select option for the Menu.

Alright I got you, I'll edit this post with the method

 

edit:

	public boolean selectMenuOption(String option) {
		if (script.menu.isOpen()) {
			List<Option> options = script.menu.getMenu();
			for (int i = 0; i < options.size(); i++) {
				if (options.get(i).action.equalsIgnoreCase(option)) {
					return script.mouse.click(new RectangleDestination(script.bot, script.menu.getX(), script.menu.getY() + 20 + (i * 15), script.menu.getWidth(), 15));
				}
			}
		}
		return false;
	}

Edited by josedpay

  • Author

 

Alright I got you, I'll edit this post with the method

 

edit:

	public boolean selectMenuOption(String option) {
		if (script.menu.isOpen()) {
			List<Option> options = script.menu.getMenu();
			for (int i = 0; i < options.size(); i++) {
				if (options.get(i).action.equalsIgnoreCase(option)) {
					return script.mouse.click(new RectangleDestination(script.bot, script.menu.getX(), script.menu.getY() + 20 + (i * 15), script.menu.getWidth(), 15));
				}
			}
		}
		return false;
	}

Thank-you very much ^_^

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.