Frez Posted March 31, 2017 Share Posted March 31, 2017 Hey, i was wondering, how can i close osbot with onExit method so it can close down when script finishes? Quote Link to comment Share on other sites More sharing options...
Lewis Posted March 31, 2017 Share Posted March 31, 2017 system.exit Quote Link to comment Share on other sites More sharing options...
Frez Posted March 31, 2017 Author Share Posted March 31, 2017 Sometimes the easiest things are hardest to see :p thank you Quote Link to comment Share on other sites More sharing options...
Polymorphism Posted March 31, 2017 Share Posted March 31, 2017 Bot#closeSelf() https://osbot.org/api/org/osbot/rs07/Bot.html#closeSelf-- Never used it, but the name is self explanatory. It might do cleanup things that System exit won't. Also, it may not actually close the entire client since: Client > Bot > Script Quote Link to comment Share on other sites More sharing options...