Lewis Posted March 25, 2017 Share Posted March 25, 2017 (edited) hey, im looking to grab the email and password as well as proxy info that is entered via cli im planning to use it to login with norandoms (explvs login handler) i currently: grab new login and pass from a file, use explvs login handler to enter info, if banned/locked grab new info from file, retry but it grabs the first email:pass from the file on very first login, where as i want it to login first with cli entered email/pass upon first login, then if banned/locked grab new info from a file how would i make it so i can do: LoginEvent loginEvent = new LoginEvent(cli email, cli pass); i need this as i plan to swap to: if banned/locked write a new .bat file with new login info and run so you can see why id need it to login first with cli user/pass i have to use norandoms due to script being paused when osbots handler logs in (meaning if acc disabled the script will end, where as i need it to continue) Edited March 25, 2017 by Lewis Quote Link to comment Share on other sites More sharing options...
Tom Posted March 25, 2017 Share Posted March 25, 2017 (edited) In your script, you can use getParameters() to get the CLI Params https://osbot.org/api/org/osbot/rs07/script/Script.html#getParameters-- There isnt a description, but that is definitely it Edited March 25, 2017 by Tom 1 Quote Link to comment Share on other sites More sharing options...
Lewis Posted March 25, 2017 Author Share Posted March 25, 2017 1 minute ago, Tom said: In your script, you can use getParameters() to get the CLI Params https://osbot.org/api/org/osbot/rs07/script/Script.html#getParameters-- There isnt a description, but that is definitely it doesnt get the parameters for -script SCRIPT:PARAMETERS? Quote Link to comment Share on other sites More sharing options...
Tom Posted March 25, 2017 Share Posted March 25, 2017 Just now, Lewis said: doesnt get the parameters for -script SCRIPT:PARAMETERS? it does, if you have code that you can show that would help Quote Link to comment Share on other sites More sharing options...
Lewis Posted March 25, 2017 Author Share Posted March 25, 2017 1 minute ago, Tom said: it does, if you have code that you can show that would help i dont use getparameters since my script is just -script script:anythingcosidoneuseparams and im not attempting to grab cli info atm so there isnt any code :p Quote Link to comment Share on other sites More sharing options...
Tom Posted March 25, 2017 Share Posted March 25, 2017 (edited) 31 minutes ago, Lewis said: hey, im looking to grab the email and password as well as proxy info that is entered via cli going by this Say you have this as your cli -script LewisScript:lewis@mail.com-123456 GetParameters will return: lewis@mail.com-123456 Split that by '-' and you have your params. String[] params = getParameters().split("-"); String email = params[0]; String password = params[1] I don't see why that wouldn't work, if you are using norandoms I dont think you can grab the initial account details from CLI, so you are better off not using them, and having them all in a file and just starting from the top, and working down if accounts are banned Edited March 25, 2017 by Tom Quote Link to comment Share on other sites More sharing options...