Jump to content

CLI and getParameters() help please


Recommended Posts

Posted

I took a break from botting so i have no clue if there are already threads with this info. If there are please link below.

What i want to know is:

How do i grab parameters entered in the CLI with my script? I took a look at the API and it looks rather complicated. I want to store login information in the parameters so that the script can log itself in and out without me having to hardcode the account info into the script (which is what i am currently doing). Is it possible to use parameters this way? Is there another way I can grab account log in information without hardcoding it?

Posted
12 minutes ago, Degrecu said:

Not sure if this will help

 

nah i already got all that but thanks. this is more advanced than the basic user using CLI to open a client. I'm trying to make my scripts and the CLI work together better.

Just now, Token said:

-script Something:email,password

String email = getParameters().split(",")[0];

String password = getParameters().split(",")[1];

thanks! i didn't think it would work like that. i feel stupid now for not trying that. cheers!

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