June 4, 201312 yr I am assuming there is no simple logout method since I couldn't find it in the few relevant classes. Is this a correct assumption? If yes to the above, do I have to manually change the tab and click the logout button?
June 5, 201312 yr Yes, there is no logout method implemented into osbot Feel free to use this: public void logout(){ RS2Interface logoutInterface = new RS2Interface(client.getBot(),182); selectInterfaceOption(548,33,"Logout"); sleep(random(500,1000)) selectInterfaceOption(182,2,"Ok"); sleep(random(500,1000)) } Edited June 5, 201312 yr by Abuse
June 5, 201312 yr Author Yes, there is no logout method implemented into osbot Feel free to use this: public void logout(){ RS2Interface logoutInterface = new RS2Interface(client.getBot(),182); selectInterfaceOption(548,33,"Logout"); sleep(random(500,1000)) selectInterfaceOption(182,2,"Ok"); sleep(random(500,1000)) } Could you explain this to me? It seems you created an RS2Interface object, but you never end up using it. What interface is 548 and 182? What is the child id used for? Edited June 5, 201312 yr by BotRs123
June 5, 201312 yr public void logout() throws InterruptedException{ openTab(Tab.LOGOUT); sleep(random(200,500)); selectInterfaceOption(182, 6, "Ok"); } Here's mine
June 5, 201312 yr Author public void logout() throws InterruptedException{ openTab(Tab.LOGOUT); sleep(random(200,500)); selectInterfaceOption(182, 6, "Ok"); } Here's mine Thanks. Could you explain what the 182 interface is and what the 6 child id does?
June 5, 201312 yr Interface no. 182 is the logout interface, child id 6 is the (logout) button on that interface.
June 5, 201312 yr Author Interface no. 182 is the logout interface, child id 6 is the (logout) button on that interface. Gotcha. Where did you obtain a list of the interface and child ids?