Jump to content
Tylersbored

widget interaction buggy

Recommended Posts

Does anybody else have bug problems when using .interact with RS2Widgets?

It is very hit or miss when they successfully perform the action for me. This varies from widget to widget, some are buggier than others. I have resorted to using .hover() to hover over the widget first and then getMouse().click(false) to actually press the widget. It works but just wondering if anybody is having the same issues or maybe I am using them wrong. If so, could someone tell me the correct process of using a widget haha. I perform null checks btw in case that has something to do with it.

 

Link to comment
Share on other sites

6 hours ago, Tylersbored said:

Does anybody else have bug problems when using .interact with RS2Widgets?

It is very hit or miss when they successfully perform the action for me. This varies from widget to widget, some are buggier than others. I have resorted to using .hover() to hover over the widget first and then getMouse().click(false) to actually press the widget. It works but just wondering if anybody is having the same issues or maybe I am using them wrong. If so, could someone tell me the correct process of using a widget haha. I perform null checks btw in case that has something to do with it.

 

The only difference between hover and interact is that hover doesn't click. hover() or setting it in interact, still uses the same core interactionevent.  Maybe a code snippet might help.

  • Like 1
Link to comment
Share on other sites

2 hours ago, Alek said:

The only difference between hover and interact is that hover doesn't click. hover() or setting it in interact, still uses the same core interactionevent.  Maybe a code snippet might help.

could it also be that I am runnning my bots on low cpu? I heard that low cpu might cause some issues with hooks

Quote

 private RS2Widget servant;
 

servant = script.getWidgets().get(370,15);
        if(servant != null && servant.interact()){
            Script.sleep(Script.random(2000,3000));
        }

This is generally how I was using them before I switched over to using hover() instead. Do you have to grab widgets freshly before you use them? Also they must be visible right? Before you can call get() on them. I have also read in a different forum that hard coding the ids in order to find widgets is bad. Could someone point me into the right direction on how to find the widgets properly :) thanks

Link to comment
Share on other sites

1 hour ago, Alek said:

Try calling something like:

bool b = servant.interact();

or

if(servant.interact())

Essentially we are checking to see if interact passed or failed on OSBot's end

I have done that as well, using a conditional sleep if the interaction succeeded. If the interaction failed I used the low level method of clicking the widget. It seemed to fail most of the time when I tried to use it but occasionally it would succeed

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...