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
  • Unable to interact with widget child


    jonnybrahh

    Recommended Posts

    Got a problem with interacting with a widget child, and trying to interact.

    I am using the standard code which works for every other widget

    Quote
    Widgets.get(864, 15).interact("Bank-all");

    Below are two photos of the widget setup and the actual button being pressed.

    All the grandchildren of the child have null actions aswell. Right or left clicking bring up the options menu, but that alone

     

     

     

    Widget ID.png

    Widget ID2.png

    Edited by jonnybrahh
    Link to comment
    Share on other sites

    As a simple solution, one to which i dont like but have done in the meantime, is just moving the mouse to a position lower, and using the click function, if there is a better way that you know of, please feel free to let me know

    Link to comment
    Share on other sites

    • 2 months later...
    Posted (edited)
    Widgets.getWidget(12).getChild(42);
    Mouse.move(Point);
    Mouse.click();
    
    Gets me the Deposit inventory widget while the bank is opened.
    
    Then I move the mouse to that widget, once mouse is there then I click it.

     

    Edited by c0d33rr0r
    Link to comment
    Share on other sites

    On 4/2/2024 at 10:11 AM, jonnybrahh said:

    Got a problem with interacting with a widget child, and trying to interact.

    I am using the standard code which works for every other widget

    Below are two photos of the widget setup and the actual button being pressed.

    All the grandchildren of the child have null actions aswell. Right or left clicking bring up the options menu, but that alone

     

     

     

    Widget ID.png

    Widget ID2.png

    Just curious - Why not use 

    Bank.depositAllItems();

    instead of widgets? Widget clicks only really need to be used when there isn't already a method of doing so unless you have endless time and brain power to keep searching for widget id's.  Just to be clear, i'm not saying this way is wrong, just a little more complicated
    Example:

    Using widget clicks to change player screen settings or clicking a specific button (such as cast "Air spell" on tutorial island).

     

    Either way - 

    On 4/2/2024 at 8:44 PM, jonnybrahh said:

    As a simple solution, one to which i dont like but have done in the meantime, is just moving the mouse to a position lower, and using the click function, if there is a better way that you know of, please feel free to let me know

    is the only way I can think to do it as well if you're dead set on using widgets. Move the mouse to the position, and click... I agree, I don't like doing it either but sometimes you have to. It feels like my code is incomplete when I don't have a function to use and have to move and click programmatically.

    Link to comment
    Share on other sites

    2 hours ago, c0d33rr0r said:
    Widgets.getWidget(12).getChild(42);
    Mouse.move(Point);
    Mouse.click();
    
    Gets me the Deposit inventory widget while the bank is opened.
    
    Then I move the mouse to that widget, once mouse is there then I click it.

     

    Because the original problem was that right or left clicking, would bring up the choose options menu, as seen in the photo

     

    1 hour ago, Kyle2016A said:

    Either way - 

    is the only way I can think to do it as well if you're dead set on using widgets. Move the mouse to the position, and click... I agree, I don't like doing it either but sometimes you have to. It feels like my code is incomplete when I don't have a function to use and have to move and click programmatically.

    yeah it was the only way, and havent changed it since, works fine, though just ugly imo

    Link to comment
    Share on other sites

    6 minutes ago, jonnybrahh said:

    Because the original problem was that right or left clicking, would bring up the choose options menu, as seen in the photo

     

    yeah it was the only way, and havent changed it since, works fine, though just ugly imo

    Does the character you are playing on have 1 click option enabled?

    Link to comment
    Share on other sites

    1 hour ago, Kyle2016A said:

    Does the character you are playing on have 1 click option enabled?

    It is only this one banking place that does this, every thing else is normal

    Link to comment
    Share on other sites

    5 minutes ago, jonnybrahh said:

    It is only this one banking place that does this, every thing else is normal

    Oh okay, which bank is it? Also a quicker option other than using widget (not a better option) is simply moving the mouse to a location and clicking.

    Mouse.setPosition(x, y);
    Mouse.drag(x, y);
    Mouse.move(x, y);
    
    Link to comment
    Share on other sites

    14 hours ago, Kyle2016A said:

    Oh okay, which bank is it? Also a quicker option other than using widget (not a better option) is simply moving the mouse to a location and clicking.

    Mouse.setPosition(x, y);
    Mouse.drag(x, y);
    Mouse.move(x, y);
    

    Yeah thats what I ended up doing, would click the widget, to bring up the options, then just moved the curser and clicked. Again, just think its a bit of an ugly way to do it haha
    Was for collosseum rewards chest

    Link to comment
    Share on other sites

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