trainux Posted May 21, 2018 Share Posted May 21, 2018 I create some random times so that the bot does not work all day, but about 10h on average, for it I use a check that I do every second, changing the state of a boolean, said boolean I put it in the onLoop () as follows : @Override public int onLoop() throws InterruptedException{ if(sleep) { } }; If said boolean is "true" then the actions are executed. When the time it seizes passes the time limit of the inactive account is disconnected successfully, the problem is that the bot starts session automatically. How could I solve this? Is there a way to tell the bot on the onLoop () to leave the account disconnected? Quote Link to comment Share on other sites More sharing options...
Muffins Posted May 21, 2018 Share Posted May 21, 2018 stop(true); will end the script and logout and not log you back in. So you could add a timer and if timer > timeAlloted, stop(true); Besides this, to actually stop the autologin, youd need to launch in CLI with -norandoms and use a custom login hander. Quote Link to comment Share on other sites More sharing options...
trainux Posted May 21, 2018 Author Share Posted May 21, 2018 14 minutes ago, Muffins said: Besides this, to actually stop the autologin, youd need to launch in CLI with -norandoms and use a custom login hander. Interesting, how can I start it that way? Any posts where they talk about a personalized start? Quote Link to comment Share on other sites More sharing options...
Muffins Posted May 21, 2018 Share Posted May 21, 2018 4 minutes ago, trainux said: Interesting, how can I start it that way? Any posts where they talk about a personalized start? https://osbot.org/forum/topic/118831-cli-commands-table/ Quote Link to comment Share on other sites More sharing options...
trainux Posted May 21, 2018 Author Share Posted May 21, 2018 45 minutes ago, Muffins said: https://osbot.org/forum/topic/118831-cli-commands-table/ Why do you throw this error at me? Quote Link to comment Share on other sites More sharing options...
Muffins Posted May 21, 2018 Share Posted May 21, 2018 3 minutes ago, trainux said: Why do you throw this error at me? You need java 8 to run osbot, you probably are running it using 9/10 Quote Link to comment Share on other sites More sharing options...
trainux Posted May 21, 2018 Author Share Posted May 21, 2018 2 minutes ago, Muffins said: You need java 8 to run osbot, you probably are running it using 9/10 1st - I initialize it with double click and start normal 2nd - I have "Java v8 u151" Just now, trainux said: 1st - I initialize it with double click and start normal 2nd - I have "Java v8 u151" Excuse me, I have java 10. Quote Link to comment Share on other sites More sharing options...
Muffins Posted May 21, 2018 Share Posted May 21, 2018 22 minutes ago, trainux said: 1st - I initialize it with double click and start normal 2nd - I have "Java v8 u151" Excuse me, I have java 10. delete 10, launch with 8 Quote Link to comment Share on other sites More sharing options...
trainux Posted May 21, 2018 Author Share Posted May 21, 2018 1 hour ago, Muffins said: You need java 8 to run osbot, you probably are running it using 9/10 Already initialized by command. But it does not disable autologin. Look: Demonstration image of the error Quote Link to comment Share on other sites More sharing options...
Muffins Posted May 21, 2018 Share Posted May 21, 2018 1 minute ago, trainux said: Already initialized by command. But it does not disable autologin. Look: Demonstration image of the error if you looked at the table you would have seen the command is -allow norandoms and not just -norandoms Quote Link to comment Share on other sites More sharing options...
trainux Posted May 21, 2018 Author Share Posted May 21, 2018 6 minutes ago, Muffins said: if you looked at the table you would have seen the command is -allow norandoms and not just -norandoms I try this: java -jar "osbot 2.5.8.jar" -debug 5005 -allow norandoms But I get the same, run the autologin. Quote Link to comment Share on other sites More sharing options...
Muffins Posted May 21, 2018 Share Posted May 21, 2018 5 minutes ago, trainux said: I try this: java -jar "osbot 2.5.8.jar" -debug 5005 -allow norandoms But I get the same, run the autologin. i can assure you it works. Quote Link to comment Share on other sites More sharing options...
trainux Posted May 21, 2018 Author Share Posted May 21, 2018 4 minutes ago, Muffins said: i can assure you it works. Will that "?" sign appearing in the command have something to do with it? imagen Quote Link to comment Share on other sites More sharing options...
Muffins Posted May 21, 2018 Share Posted May 21, 2018 1 minute ago, trainux said: Will that "?" sign appearing in the command have something to do with it? imagen yes you need to remove the "?" Quote Link to comment Share on other sites More sharing options...
trainux Posted May 21, 2018 Author Share Posted May 21, 2018 8 minutes ago, Muffins said: yes you need to remove the "?" I do not really know where that sign came from, where he copied it from, it was without sign and he stuck it and that sign appeared, he thought it was normal. Solved, now to try to customize the login. Thank you. Quote Link to comment Share on other sites More sharing options...