Jump to content
Frequently Asked Questions
  • Are you not able to open the client? Try following our getting started guide
  • Still not working? Try downloading and running JarFix
  • Help! My bot doesn't do anything! Enable fresh start in client settings and restart the client
  • How to purchase with PayPal/OSRS/Crypto gold? You can purchase vouchers from other users
  • Any way to close/minimize client via API?


    freshman123m

    Recommended Posts

    Don't hate :o

    private void minimize() {
         ((JFrame) getClient().getInstance().getCanvas().getParent().getParent().getParent().getParent().getParent().getParent().getParent()).setState(Frame.ICONIFIED);
    }
    
    Link to comment
    Share on other sites

     

    Don't hate :o

    private void minimize() {
         ((JFrame) getClient().getInstance().getCanvas().getParent().getParent().getParent().getParent().getParent().getParent().getParent()).setState(Frame.ICONIFIED);
    }
    

    Thanks.

     

    Also I'm guessing I can access the gui with ((JFrame) getClient().getInstance().getCanvas().getParent().getParent().getParent().getParent().getParent().getParent().getParent()) but does that let me access settings such as Set CPU Saver Mode or is that a child of one of the getParents?

    Link to comment
    Share on other sites

    On 3/10/2017 at 7:00 PM, freshman123m said:

    Thanks.

     

    Also I'm guessing I can access the gui with ((JFrame) getClient().getInstance().getCanvas().getParent().getParent().getParent().getParent().getParent().getParent().getParent()) but does that let me access settings such as Set CPU Saver Mode or is that a child of one of the getParents?

    Nope. The JFrame doesn't give you access to those settings.

    Link to comment
    Share on other sites

    Archived

    This topic is now archived and is closed to further replies.

    ×
    ×
    • Create New...

    Important Information

    We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.