Jump to content

Opening tabs doesn't work


Recommended Posts

Posted

For me it works as expected. I've isolated the code in a empty script:

@Override
public void onStart() throws InterruptedException {
    getTabs().open(Tab.FRIENDS);
    sleep(1000);
    getTabs().open(Tab.INVENTORY);
    sleep(1000);
    getTabs().open(Tab.IGNORES);
}

Only thing that seems wrong is that the friends and ignores tab seem to be swapped. This code opens the ignores tab first.

Next time you have a problem try isolating the problem and adding print statements. This solves most problems for me.

  • Like 1
Posted
1 hour ago, OELABOELA2 said:

For me it isn't able to open any of those tabs and I've added print statements all around my code. I'm not using reflection and using the 2.5.8 client. 

 

 

Strange. So you literally have something like this in your code;

log("About to open tab");
getTabs().openTab(Tab.Inventory);
log("Opened tab");

and it only prints those 2 lines and doesn't open tab?

In that case I guess its a bug in the API :(

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