CheckingItOut Posted August 23, 2021 Share Posted August 23, 2021 Hi, I'm trying to be able to autoswitch accounts after a certain amount of time, but I'm not sure how to use the following snippet of code. Bot switchAccount(String username, String password, int pin) I tried the following Bot switchAccount(String "sampleusername", String "hunter2", int 0000); Bot switchAccount("sampleusername", "hunter2", 0000); Bot switchAccount(stringvarstoringusername, stringvarstoringpassword, intvarstoringpin); but the code editor is giving me errors. Any help is much appreciated, thank you. 1 Quote Link to comment Share on other sites More sharing options...
Nbacon Posted August 24, 2021 Share Posted August 24, 2021 I personaly would over ride the login handler... you do loss a some things... but will it do what you ask. 1 Quote Link to comment Share on other sites More sharing options...
Khaleesi Posted August 24, 2021 Share Posted August 24, 2021 (edited) 7 hours ago, CheckingItOut said: Hi, I'm trying to be able to autoswitch accounts after a certain amount of time, but I'm not sure how to use the following snippet of code. Bot switchAccount(String username, String password, int pin) I tried the following Bot switchAccount(String "sampleusername", String "hunter2", int 0000); Bot switchAccount("sampleusername", "hunter2", 0000); Bot switchAccount(stringvarstoringusername, stringvarstoringpassword, intvarstoringpin); but the code editor is giving me errors. Any help is much appreciated, thank you. getBot().switchAccount(username, password, bankpin); Can't be much simpler than that Lgout after switching the account and new acc will login Edited August 24, 2021 by Khaleesi 1 Quote Link to comment Share on other sites More sharing options...
CheckingItOut Posted August 24, 2021 Author Share Posted August 24, 2021 Thank you for the replies. Quote Link to comment Share on other sites More sharing options...