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
  • How to...?


    Mojo

    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

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

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

    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

    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... :[

     

    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.

    Link to comment
    Share on other sites

    Archived

    This topic is now archived and is closed to further replies.

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