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 tutorial request

Featured Replies

Sorry, if it's out there somewhere, but was unable to find one. Is there/or could someone write a decent tutorial on how to use widget debugger, use widgets in code etc. with examples? For example I want to make the bot to click on GE Box1. I can see that the Action for it is "View offer" when I hover my mouse on it, but using widget debugger I'm unable to find which widget it is, that has the action.

 

Also, I've seen in multiple topics that using static widget ID's in code is like punching your grandma. As I understood you can use 

RS2Widget allWidget = getWidgets().singleFilter(getWidgets().getAll(), new ActionFilter("SOME ACTION HERE")); 

but isn't it extremely inefficient, cause as I understand it goes though all the widgets? And is it safe to filter by action alone?

 

Thanks in advance

Sorry, if it's out there somewhere, but was unable to find one. Is there/or could someone write a decent tutorial on how to use widget debugger, use widgets in code etc. with examples? For example I want to make the bot to click on GE Box1. I can see that the Action for it is "View offer" when I hover my mouse on it, but using widget debugger I'm unable to find which widget it is, that has the action.

Also, I've seen in multiple topics that using static widget ID's in code is like punching your grandma. As I understood you can use

RS2Widget allWidget = getWidgets().singleFilter(getWidgets().getAll(), new ActionFilter("SOME ACTION HERE"));
but isn't it extremely inefficient, cause as I understand it goes though all the widgets? And is it safe to filter by action alone?

Thanks in advance

Enable widgets in options.

Hover over the widget, you will see the widget IDs in the same colour as the box surrounding your widget.

Input those IDs into the debugger

  • Author

Thanks, fiddled around a little bit and got the ID's. 

 

 

 

Also note if its not showing up as an action, it might be a tooltip (.getTooltip())

 

This is just for information gathering right? Cause I don't believe that I'll be able to interact with a widget through the info of its' tooltip.

 

Anyway thanks for the responses.

 

But how about getting the widgets without hardcoding ID's?

Thanks, fiddled around a little bit and got the ID's. 

 

 

This is just for information gathering right? Cause I don't believe that I'll be able to interact with a widget through the info of its' tooltip.

 

Anyway thanks for the responses.

 

But how about getting the widgets without hardcoding ID's?

 

For example, the pottery interface for the "Make 1", "Make 5", "Make 10", "Make X" is all separate widgets with the "Make X" being the tooltip. Might be only on older content, but it happens (and its the action basically).

Thanks, fiddled around a little bit and got the ID's.

This is just for information gathering right? Cause I don't believe that I'll be able to interact with a widget through the info of its' tooltip.

Anyway thanks for the responses.

But how about getting the widgets without hardcoding ID's?

You can get them using filters like in the example you posted, and then just store the result. You would only need to do it once and it wouldn't be that inefficient

Cache the widget so you dont need to search for it every time

  • Author

You can get them using filters like in the example you posted, and then just store the result. You would only need to do it once and it wouldn't be that inefficient

 

 

Cache the widget so you dont need to search for it every time

 

Great, thanks for the info

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.