Jump to content
Frequently Asked Questions
  • Are you not able to open the client? Try following our getting started guide
  • Still not working? Try downloading and running JarFix
  • Help! My bot doesn't do anything! Enable fresh start in client settings and restart the client
  • How to purchase with PayPal/OSRS/Crypto gold? You can purchase vouchers from other users
  • Detect Forgot Password Page?


    oschecker

    Recommended Posts

    My script keeps getting stuck on the forgot password screen due to lag, I can't find out how to detect if I'm on it though, If it's detected I'm looking to click backButton then cancelButton, could anyone help me out? The buttons are refined as rectangles. There doesn't seem to be a loginindex for it since it's not technically logged in

    Edited by oschecker
    Link to comment
    Share on other sites

    On 12/4/2022 at 9:41 AM, oschecker said:

    My script keeps getting stuck on the forgot password screen due to lag, I can't find out how to detect if I'm on it though, If it's detected I'm looking to click backButton then cancelButton, could anyone help me out? The buttons are refined as rectangles. There doesn't seem to be a loginindex for it since it's not technically logged in

    Untested, but looking at the API, this should get you started:

    if (LoginUtility.getStage() == LoginStage.FORGOTTEN_PASSWORD) {
                Mouse.click(LoginUtility.getBackButton());
    }

    You may need to disable the login random solver and write your own though. https://dreambot.org/javadocs/org/dreambot/api/methods/login/LoginUtility.html

    Let me know if I can help.

    Link to comment
    Share on other sites

    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
    ×
    ×
    • Create New...

    Important Information

    We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.