Jump to content

interacting with a rectangle?


Joseph

Recommended Posts


public boolean selectMenuOption(String option) {

if (sI.menu.isOpen()) {

List<Option> options = sI.menu.getMenu();

for (int i = 0; i < options.size(); i++) {

if (options.get(i).action.equalsIgnoreCase(option)) {

return sI.mouse.click(new RectangleDestination(sI.bot, sI.menu.getX(), sI.menu.getY() + 20 + (i * 15), sI.menu.getWidth(), 15));

}

}

}

return false;

}

Edited by Swizzbeat
  • Like 2
Link to comment
Share on other sites

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

swizz came to save the day, thanks for this. its too late for me to actually try to create this method

  • Like 1
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...