Jump to content

Not sure if it's a bug or I'm overlooking something with tabs


Recommended Posts

Posted
void activateStrength() {
        int CombatStyle = getConfigs().get(43);
        if (CombatStyle != 1) {
            log("click?");
            if(tabs.isOpen(Tab.ATTACK)) {
                log("tap?");
                mouse.click(random(650, 710), random(255, 290), false);
                log("click?");
            } else {
                log("this thing?");
                tabs.open(Tab.ATTACK);
            }
        }
    }

So, when I'm trying to run this function, I get outputs "click?" and "this thing?" spamming the logger. It actually does open up the Attack tab but the bot never sees it as being open. I've tried using tab.isOpen as well as seeing if a widget is not null and visible (which it was) and still nothing under that branch is firing off.

  • Like 1
Posted
3 hours ago, Alakazizam said:
void activateStrength() {
        int CombatStyle = getConfigs().get(43);
        if (CombatStyle != 1) {
            log("click?");
            if(tabs.isOpen(Tab.ATTACK)) {
                log("tap?");
                mouse.click(random(650, 710), random(255, 290), false);
                log("click?");
            } else {
                log("this thing?");
                tabs.open(Tab.ATTACK);
            }
        }
    }

So, when I'm trying to run this function, I get outputs "click?" and "this thing?" spamming the logger. It actually does open up the Attack tab but the bot never sees it as being open. I've tried using tab.isOpen as well as seeing if a widget is not null and visible (which it was) and still nothing under that branch is firing off.

I believe due to yesterdays update some widgets changed, will check it with the devs :)

  • Heart 1
Posted
19 minutes ago, Alakazizam said:

Yeah I had to change widget numbers on a couple scripts, I picked a different widget than the one I was using and it started working. (593, 0)

Ya they added some new widgets at some places, that's why I generally speaking never use widgets IDs.
I do use the root ID to filter out but I use text, action or spell name in 99% of the cases

  • Like 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

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