gptaqbc Posted March 11, 2018 Share Posted March 11, 2018 I want the osbot client to close when the script stops but I can'f find anything about it... Quote Link to comment Share on other sites More sharing options...
Butters Posted March 11, 2018 Share Posted March 11, 2018 Could do System.exit(0); If you have a custom login handler. If no, then I suggest starting scripts via CLI and close them with taskkill/pkill in batch/bash if possible 2 Quote Link to comment Share on other sites More sharing options...
w0000t Posted March 11, 2018 Share Posted March 11, 2018 (edited) 10 minutes ago, Butters said: Could do System.exit(0); If you have a custom login handler. If no, then I suggest starting scripts via CLI and close them with taskkill/pkill in batch/bash if possible Beautiful, thank you for this, I was looking for something like that as well. Edited March 11, 2018 by w0000t Quote Link to comment Share on other sites More sharing options...
inababila Posted March 11, 2018 Share Posted March 11, 2018 Exactly what @Butters said. @Explv has a wonderful login handler here Quote Link to comment Share on other sites More sharing options...
gptaqbc Posted March 12, 2018 Author Share Posted March 12, 2018 Thanks a lot guys! 1 Quote Link to comment Share on other sites More sharing options...
Butters Posted March 12, 2018 Share Posted March 12, 2018 8 hours ago, inababila said: Exactly what @Butters said. @Explv has a wonderful login handler here Maybe I misunderstood what you exactly need. If you wanna close the client when it logs out, then probably it finished doing certain stuff and log out means I'm done bye bye. If that's the case. then no need for a login handler, just do System.exit(); after your bot finished it's' activities. 2 Quote Link to comment Share on other sites More sharing options...
gptaqbc Posted March 12, 2018 Author Share Posted March 12, 2018 8 hours ago, Butters said: Maybe I misunderstood what you exactly need. If you wanna close the client when it logs out, then probably it finished doing certain stuff and log out means I'm done bye bye. If that's the case. then no need for a login handler, just do System.exit(); after your bot finished it's' activities. Yep, that's exactly what I need! I'm going to try it right now. Quote Link to comment Share on other sites More sharing options...
Juggles Posted March 12, 2018 Share Posted March 12, 2018 1 hour ago, gptaqbc said: Yep, that's exactly what I need! I'm going to try it right now. Be careful though! Jagex knows real players don't exit clients 3 Quote Link to comment Share on other sites More sharing options...
gptaqbc Posted March 12, 2018 Author Share Posted March 12, 2018 1 hour ago, Juggles said: Be careful though! Jagex knows real players don't exit clients Are you serious man? o.o Quote Link to comment Share on other sites More sharing options...
gptaqbc Posted March 13, 2018 Author Share Posted March 13, 2018 Update: This is not working. Bot keeps logging back in. I tried without the .stop(true) also... Any suggestion? Quote Link to comment Share on other sites More sharing options...
gptaqbc Posted March 13, 2018 Author Share Posted March 13, 2018 UPDATE: I had a sleep before these lines so the login handler was triggered. Working fine now! Quote Link to comment Share on other sites More sharing options...
Butters Posted March 16, 2018 Share Posted March 16, 2018 On 3/14/2018 at 1:26 AM, gptaqbc said: Update: This is not working. Bot keeps logging back in. I tried without the .stop(true) also... Any suggestion? Issue was you stopped script before System.exit(); It never got executed 1 Quote Link to comment Share on other sites More sharing options...