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
  • Try asking for help in the chatbox
  • How to...?


    Mojo
     Share

    Recommended Posts

    How can I launch another dreambot instance through a script? I want to have bot manager running but will then launch several other clients according to the settings in the GUI? Any snippets would be appreciated.

    Link to comment
    Share on other sites

    14 minutes ago, Roma said:

    Runtime.getRuntime().exec("java -jar client.jar");

    Pretty sure that you can use quickstart by adding the params after the .jar path.

    YUP That is how I recently did it for a script a friend had me write for tracking statuses of his bots.

    Link to comment
    Share on other sites

    awesome thanks, how can I get the output from them as well?

    Edited by Mojo
    Link to comment
    Share on other sites

    String cmd = "java -jar -Xbootclasspath/p:C:\\\\Users\\Jon\\DreamBot\\BotData\\client.jar C:\\\\Users\\Jon\\DreamBot\\BotData\\client.jar -proxyHostArg ip -proxyPortArg 1080 -script Script -params user pass";


                Process pr = rt.exec(cmd);
                pr.getInputStream();

    It runs fine through a bat file, but when I try to open it from a java instance it just says 'Attempting to quickstart'

    Not sure what I could be messing up on... :[

     

    Edited by Mojo
    Link to comment
    Share on other sites

    What would I do to get the console log to be outputted into a GUI. Or just label each of them and save their logs somehow.

     

    One way im thinking is to have temp log files for each account and just read from there but that seems a bit too much, should be an easier way.

    Edited by Mojo
    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
     Share

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