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.

Widget is always visible if its not null

Featured Replies

Hello, I want to make the map bigger until the icon that symboling my player on map interface is visible

so the point is even if widget is not visible on main screen osbot dedects it as visible. It works more like != null than isVisible()

even if i use something like this:



randomQuestWidget = Quests.Quest.Doric's_Quest

if (randomQuestWidget != null && randomQuestWidget.isVisible()) {

    randomQuestWidget.hover();
}

 

it hovers the mouse on invisible quest -> https://prnt.sc/ROEan6Kj0oZH

how can i check if a widget actually isVisible or not?

9 hours ago, Yusi said:

Hello, I want to make the map bigger until the icon that symboling my player on map interface is visible

so the point is even if widget is not visible on main screen osbot dedects it as visible. It works more like != null than isVisible()

even if i use something like this:



randomQuestWidget = Quests.Quest.Doric's_Quest

if (randomQuestWidget != null && randomQuestWidget.isVisible()) {

    randomQuestWidget.hover();
}

 

it hovers the mouse on invisible quest -> https://prnt.sc/ROEan6Kj0oZH

how can i check if a widget actually isVisible or not?

You check the Y coordinate to be in the actual visible rectangle :)

  • Author
44 minutes ago, Khaleesi said:

You check the Y coordinate to be in the actual visible rectangle :)

 

I have made this and its working properly thank you 🙂

 

if (ernestTheChickenQuest != null && ernestTheChickenQuest.isVisible() && ernestTheChickenQuest.getAbsY() > 254 && ernestTheChickenQuest.getAbsY() < 415) {

log("koyashScript");
}

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.