Jump to content

Opening tabs doesn't work


OELABOELA2

Recommended Posts

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
Link to comment
Share on other sites

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 :(

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

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