trainux Posted May 21, 2018 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?
Muffins Posted May 21, 2018 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.
trainux Posted May 21, 2018 Author 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?
Muffins Posted May 21, 2018 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/
trainux Posted May 21, 2018 Author 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?
Muffins Posted May 21, 2018 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
trainux Posted May 21, 2018 Author 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.
Muffins Posted May 21, 2018 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
trainux Posted May 21, 2018 Author 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
Muffins Posted May 21, 2018 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
trainux Posted May 21, 2018 Author 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.
Muffins Posted May 21, 2018 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.
trainux Posted May 21, 2018 Author 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
Muffins Posted May 21, 2018 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 "?"
trainux Posted May 21, 2018 Author 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.