Mojo 8 Share Posted April 13, 2019 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 More sharing options...
Roma 2217 Share Posted April 13, 2019 Runtime.getRuntime().exec("java -jar client.jar"); Pretty sure that you can use quickstart by adding the params after the .jar path. yeeter 1 Link to comment Share on other sites More sharing options...
yeeter 491 Share Posted April 13, 2019 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 More sharing options...
Mojo 8 Author Share Posted April 14, 2019 (edited) awesome thanks, how can I get the output from them as well? Edited April 14, 2019 by Mojo Link to comment Share on other sites More sharing options...
Mojo 8 Author Share Posted April 14, 2019 (edited) 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 April 14, 2019 by Mojo Link to comment Share on other sites More sharing options...
Mojo 8 Author Share Posted April 15, 2019 Dunno what I did but its fixed now 😜 Link to comment Share on other sites More sharing options...
Mojo 8 Author Share Posted April 15, 2019 (edited) 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 April 15, 2019 by Mojo Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now