GPSwap Posted July 15, 2017 Share Posted July 15, 2017 (edited) IGNORE IM A RETARD issue was elsewhere if (widgets.containingActions(7, "Join Chat") != null) { if(widgets.interact(7, 17, "Join Chat")){ new ConditionalSleep(10000) { @Override public boolean condition() { return widgets.isVisible(162, 32); } }.sleep(); } if (widgets.containingActions(7, "Leave Chat") != null){ if(widgets.interact(7, 17, "Leave Chat")){ new ConditionalSleep(10000) { @Override public boolean condition() { return widgets.containingActions(7, "Join Chat") != null; } }.sleep(); } } Edited July 16, 2017 by GPSwap Quote Link to comment Share on other sites More sharing options...
d0zza Posted July 16, 2017 Share Posted July 16, 2017 From memory you don't use the same widget to leave the chat. Check all widgets that are there and use the widget debugger to find out which one has the option to leave. Quote Link to comment Share on other sites More sharing options...
GPSwap Posted July 16, 2017 Author Share Posted July 16, 2017 7 minutes ago, d0zza said: From memory you don't use the same widget to leave the chat. Check all widgets that are there and use the widget debugger to find out which one has the option to leave. It is the same widget thats what makes this so damn confusing, same code same widget 1 works 1 doesnt XD Quote Link to comment Share on other sites More sharing options...
d0zza Posted July 16, 2017 Share Posted July 16, 2017 1 hour ago, GPSwap said: It is the same widget thats what makes this so damn confusing, same code same widget 1 works 1 doesnt XD Are you sure you're actually entering the 2nd if statement? Quote Link to comment Share on other sites More sharing options...