Jump to content
View in the app

A better way to browse. Learn more.

OSBot :: 2007 OSRS Botting

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Any other way to hover an Action?

Featured Replies

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.

  • Author

Just:

Mouse.move(menu.getOptionRectangle(menuActionNumber));

Thanks mah dude, didn't use this exact snippet, but it got me in right direction and now doesn't lag anymore!

Create an account or sign in to comment

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.