Jump to content

Launch a new script on exit


Recommended Posts

Posted (edited)
9 hours ago, Kramnik said:

You can do that on CLI, but its kinda dumb in my opinion. When script finishes make it close the client then in CLI if you have another code cued up it will start another client with new script

Nice, so just use the -script flag two times? Or two sets of parameters for one -script flag?

 

Edited by BigCahunaBurger
Posted

I tried with -bot -script twoScript:"username;pass" -script oneScript:"username;pass" as well as "-bot -script oneScript:"username;pass" twoScript:"username;pass" but no luck. I may be formatting it incorrectly. Perhaps you can share your command line format Kramnik, for the record I'm exiting the script on onExit with System.exit(), which is probably not correct.

Posted
4 hours ago, BigCahunaBurger said:

I tried with -bot -script twoScript:"username;pass" -script oneScript:"username;pass" as well as "-bot -script oneScript:"username;pass" twoScript:"username;pass" but no luck. I may be formatting it incorrectly. Perhaps you can share your command line format Kramnik, for the record I'm exiting the script on onExit with System.exit(), which is probably not correct.

I assume you got one CLI commands running fine, so just create a .bat file like this:

-*CLI for first script*

-*CLI for second script*

The first script needs to have System.exit() then after the client closes the bat file will run second line with the new script

  • Like 1
Posted (edited)
24 minutes ago, Kramnik said:

I assume you got one CLI commands running fine, so just create a .bat file like this:

-*CLI for first script*

-*CLI for second script*

The first script needs to have System.exit() then after the client closes the bat file will run second line with the new script

Ohh okay. Yeah let me see if that works. It should...

Edited by BigCahunaBurger

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