March 11, 20187 yr I want the osbot client to close when the script stops but I can'f find anything about it...
March 11, 20187 yr 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
March 11, 20187 yr 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, 20187 yr by w0000t
March 12, 20187 yr 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.
March 12, 20187 yr Author 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.
March 12, 20187 yr 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
March 12, 20187 yr Author 1 hour ago, Juggles said: Be careful though! Jagex knows real players don't exit clients Are you serious man? o.o
March 13, 20187 yr Author Update: This is not working. Bot keeps logging back in. I tried without the .stop(true) also... Any suggestion?
March 13, 20187 yr Author UPDATE: I had a sleep before these lines so the login handler was triggered. Working fine now!
March 16, 20187 yr 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
Create an account or sign in to comment