Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

Sign up now!

Bug Right click menus

Joined
Dec 30, 2014
Messages
13
I said that I would post this but almost forgot. Sometime ago while running my bot I came back to find that a right click menu had been opened on the viewport of the game (it appeared that Clouse performed this action). The menu appeared to overlap one of the game objects and RM had issues discovering that the menu overlapped the object (I think.. cant remember). Anyway the mouse appeared to just move up and down the menu in a looping fashion. Luckily I stopped it in time but I think it should be looked at. Thanks.
 
Joined
Dec 20, 2016
Messages
37
This has happened to me. I'm not sure if runemate supports this. But I would implement a failsafe.

Ex: if you failed to click that object 10 times in a row, try clicking your inventory, or move your mouse around the screen.
 
Joined
Dec 30, 2014
Messages
13
This has happened to me. I'm not sure if runemate supports this. But I would implement a failsafe.

Ex: if you failed to click that object 10 times in a row, try clicking your inventory, or move your mouse around the screen.

Okay, I think "click()" returns false each time? I guess you could just add a counter for up to 5 - 10 then instruct RM to do something else.
 
Joined
Oct 3, 2015
Messages
10
Also have encountered this. If you're not enforcing left clicks, here's another workaround:
Code:
//GameObject obj
boolean menuOpen = Menu.isOpen();
boolean menuContains = menuOpen && Menu.contains("Interact", "Object");
if(menuContains || (obj.isVisible() && !menuOpen)) {
    //obj.interact("Interact", "Object");
} else if(menuOpen) {
    Menu.close();
}
If you do need to left-click or want something more robust, you could probably grab Menu.getBounds() if it's open and see if it intersects the game object's bounds, haven't tried this myself though.
 
Top