HeyImJamie Posted May 7, 2017 Share Posted May 7, 2017 Is there a way to pause the Autologin and log out at certain times of the day? I've tried implementing if (CurrentHour > 6 && CurrentHour < 18) return State.OUT_OF_HOURS; but half the time it doesn't work. and the other time I'll get it to log out but it'll log straight back in. Quote Link to comment Share on other sites More sharing options...
Eagle Scripts Posted May 7, 2017 Share Posted May 7, 2017 You can use your own LoginHandler, or play around with pausing and resuming the scriptExecutor. I'd advise to just go with the LoginHandler solution though. Bear in mind that you'll have the disable all randoms through CLI for this 1 Quote Link to comment Share on other sites More sharing options...
HeyImJamie Posted May 7, 2017 Author Share Posted May 7, 2017 1 minute ago, Eagle Scripts said: You can use your own LoginHandler, or play around with pausing and resuming the scriptExecutor. I'd advise to just go with the LoginHandler solution though. Bear in mind that you'll have the disable all randoms through CLI for this Thought I'd have to do as much. :P Thanks Quote Link to comment Share on other sites More sharing options...
Alek Posted May 7, 2017 Share Posted May 7, 2017 Settings->Options and adjust the break values. It says "how long should stay logged out for before logging back in", which is what you are asking. Quote Link to comment Share on other sites More sharing options...
HeyImJamie Posted May 7, 2017 Author Share Posted May 7, 2017 10 minutes ago, Alek said: Settings->Options and adjust the break values. It says "how long should stay logged out for before logging back in", which is what you are asking. Nope. I want the script to run as normal at certain hours of the day but cease to run at times I've selected which with the current break handler, I don't think is possible. Quote Link to comment Share on other sites More sharing options...
Charlotte Posted May 7, 2017 Share Posted May 7, 2017 Custom login handler. Quote Link to comment Share on other sites More sharing options...
HeyImJamie Posted May 7, 2017 Author Share Posted May 7, 2017 36 minutes ago, Charlotte said: Custom login handler. Is it me being retarded or is it broken Quote Link to comment Share on other sites More sharing options...
k9thebeast Posted May 7, 2017 Share Posted May 7, 2017 2 minutes ago, HeyImJamie said: Is it me being retarded or is it broken The 1st one. Although there are quite a few improvements that can be made Quote Link to comment Share on other sites More sharing options...
Alek Posted May 7, 2017 Share Posted May 7, 2017 6 minutes ago, k9thebeast said: The 1st one. Although there are quite a few improvements that can be made To Explv's or mine? I just tested the default OSBot one on the latest dev build lol. Quote Link to comment Share on other sites More sharing options...
k9thebeast Posted May 7, 2017 Share Posted May 7, 2017 (edited) 2 minutes ago, Alek said: To Explv's or mine? I just tested the default OSBot one on the latest dev build lol. Oh Explv's. YOURS IS FLAWLESS I've only experienced bugs with the built in one (maybe once every other week over a LOT of testing) when I've either started / stopped a script weirdly during the auto login (or it gets an NPE during auto login) or I start / Stop a script like a trillion times sometimes it acts funny. Edited May 7, 2017 by k9thebeast Quote Link to comment Share on other sites More sharing options...
Alek Posted May 7, 2017 Share Posted May 7, 2017 1 hour ago, k9thebeast said: Oh Explv's. YOURS IS FLAWLESS I've only experienced bugs with the built in one (maybe once every other week over a LOT of testing) when I've either started / stopped a script weirdly during the auto login (or it gets an NPE during auto login) or I start / Stop a script like a trillion times sometimes it acts funny. I think its an issue when you stop a script which throws an InterruptedException or gets caught in some sort of loop. I mean the way to fix this is to have scripters check to see if the script is stopped during all states, then breaking out of whatever they have if it is. Chances of this happening is not very likely at all though haha. 1 Quote Link to comment Share on other sites More sharing options...
Explv Posted May 7, 2017 Share Posted May 7, 2017 (edited) 1 hour ago, k9thebeast said: Although there are quite a few improvements that can be made Such as? I just tested it, and it works fine Edited May 7, 2017 by Explv Quote Link to comment Share on other sites More sharing options...
k9thebeast Posted May 7, 2017 Share Posted May 7, 2017 (edited) 11 minutes ago, Explv said: Such as? Two main things that I've changed in mine are a conditional sleep to tell the client is loaded before actually trying to log in (the default one throws NPE if applet isnt fully loaded) Somethings off with the onResponseCode(), havent delved too far into it but it doesnt activate everytime when there is a response code other than a successful login of course. Remedied this by just overiding it within my main.java which works fine. Edited May 7, 2017 by k9thebeast Quote Link to comment Share on other sites More sharing options...