Jump to content
Strange_Fk

Any other way to hover an Action?

Recommended Posts

I've come up with two ways to hover an action, both have ups and downs.

The first was lag free, but not the most effective so I ditched this and came up with this as my second attempt, however it lags slightly whenever it pulls up the menu.

            int menuActionNumber = getMenuAPI().getMenuIndex(menuName, menuAction);

         if (!canLoot && menu.isOpen() && menuActionNumber >= 0)  {
            int minOptionX = menu.getX();
            int maxOptionX = minOptionX + menu.getWidth();
            int minOptionY = menu.getOptionRectangle(menuActionNumber).y;
            int maxOptionY = minOptionY + 12;
            sleep(random(611, 711));
            mouse.move(random(minOptionX, maxOptionX), random(minOptionY, maxOptionY));
         }

The if statement is the same for both attempts so if has to do with the body of the if statement that causes the lag.

 

If there is a more effective way to do this it would be much appreciated if someone could send me in the right direction.

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