Blurper Posted June 11, 2018 Share Posted June 11, 2018 Hello, I have a use case in which I need the account to log off and STAY logged off for a few minutes, then log back in. Is it possible somehow to disable the auto login, and then re-enable it whenever I need to? Thanks, Blurp 1 Quote Link to comment Share on other sites More sharing options...
Canidae Posted June 11, 2018 Share Posted June 11, 2018 You can use a custom login handler. I think @Explv has one in the snippet section. You could also override the break handler, making it break at the time it should be logged out iirc. 1 Quote Link to comment Share on other sites More sharing options...
Blurper Posted June 11, 2018 Author Share Posted June 11, 2018 3 minutes ago, Canidae said: You can use a custom login handler. I think @Explv has one in the snippet section. You could also override the break handler, making it break at the time it should be logged out iirc. I don't quite like custom handlers because they probably don't cover all error cases and requires passing of account data via arguments. I'll look into the break handler suggestion, thanks. Still looking for more suggestions! Quote Link to comment Share on other sites More sharing options...
Canidae Posted June 11, 2018 Share Posted June 11, 2018 3 minutes ago, Blurper said: I don't quite like custom handlers because they probably don't cover all error cases and requires passing of account data via arguments. I'll look into the break handler suggestion, thanks. Still looking for more suggestions! You can add all error message checks yourself, there's a list which contains all of them with the according number. It's probably the easiest way to do so. Quote Link to comment Share on other sites More sharing options...
Antonio Kala Posted June 12, 2018 Share Posted June 12, 2018 (edited) @Blurper let us know what solution you come up with and update the thread. I'm sure a lot of other people have the same question. But I'm pretty sure you have to use -no randoms. Edited June 12, 2018 by Antonio Kala Quote Link to comment Share on other sites More sharing options...
Alek Posted June 12, 2018 Share Posted June 12, 2018 You can override break manager since 2.4.131, you do not need to clear all randoms: https://osbot.org/forum/topic/125655-stable-build-osbot-24131-patches-break-override/ Alternatively you could clear randoms through CLI. Quote Link to comment Share on other sites More sharing options...