jonnybrahh 2 Share Posted April 2 (edited) 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 Edited April 3 by jonnybrahh Link to comment Share on other sites More sharing options...
jonnybrahh 2 Author Share Posted April 3 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 More sharing options...
c0d33rr0r 3 Share Posted June 5 (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 June 5 by c0d33rr0r Link to comment Share on other sites More sharing options...
Kyle2016A 2 Share Posted June 5 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 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 More sharing options...
jonnybrahh 2 Author Share Posted June 5 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 More sharing options...
Kyle2016A 2 Share Posted June 5 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 More sharing options...
jonnybrahh 2 Author Share Posted June 5 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 More sharing options...
Kyle2016A 2 Share Posted June 5 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 More sharing options...
jonnybrahh 2 Author Share Posted June 6 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now