Jump to content

Overriding break manager


Recommended Posts

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

  • Like 2
Posted
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: 

  • Sad 1
Posted (edited)

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

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...