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.

Overriding break manager

Featured Replies

I'm implementing a custom break manager into my script, is it possible (using any way needed) to remove the JOptionPane from showing when you override it.

I wouldn't mind but it's blocking until you close it which is annoying for automation purposes.

-allow norandoms should work. You'd need to handle your own logins though.

If you want to really do it through overriding the breakmanager, I believe there is no way around the OptionPane as Alek probably wanted to make sure users won't blame OSBot for any false use of the BreakManager Overriding :)

13 minutes ago, HeyImJamie said:

-allow norandoms should work. You'd need to handle your own logins though.

 

8 minutes ago, Juggles said:

-norandoms is the only way

 

You guys didn't read his post, at all lol.

 

@3qTQlBnsOsyfetvA

No,  @Eagle Scripts mentioned exactly why. I get lots of bug reports about break manager and autologin as it is, I don't need the added confusion of whether or not it was coming from a custom handler. There was a good suggestion about adding an ignore flag, but believe it or not I would anticipate still false reports. It's something I haven't forgot about.

  • Author

@Alek damn, maybe you could add an override as a cli option? maybe -allow randomoverride or similar

Edited by 3qTQlBnsOsyfetvA

24 minutes ago, 3qTQlBnsOsyfetvA said:

@Alek damn, maybe you could add an override as a cli option? maybe -allow randomoverride or similar

Read above lol

  • Author
35 minutes ago, Alek said:

Read above lol

I read it but I was thinking burying it in the CLI would stop the false reports because the only people who'd use it are people who knows what it does.

 

edit nvm im retarded, it'd still be a nice thing tho

Edited by 3qTQlBnsOsyfetvA

4 hours ago, Alek said:

 

 

You guys didn't read his post, at all lol.

 

@3qTQlBnsOsyfetvA

No,  @Eagle Scripts mentioned exactly why. I get lots of bug reports about break manager and autologin as it is, I don't need the added confusion of whether or not it was coming from a custom handler. There was a good suggestion about adding an ignore flag, but believe it or not I would anticipate still false reports. It's something I haven't forgot about.

Wut. He said by using any method at all :feels: 

  • Author

solved

public class PaneRemover extends Thread {

    public void run(){
        boolean pane = false;

        while(!pane) {
            try {
                Window[] windows = Window.getWindows();
                for (Window window : windows) {
                    if (window instanceof JDialog) {
                        JDialog dialog = (JDialog) window;
                        if (dialog != null && dialog.getTitle().equalsIgnoreCase("Override Warning!")) {
                            Main.main.log("found pane");
                            pane = true;
                            dialog.dispose();
                        }
                    }
                }
            } catch (Exception e){

            }
        }
    }

}

messy but it works

Edited by 3qTQlBnsOsyfetvA

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.