Gooberino Posted February 9, 2021 Share Posted February 9, 2021 Hello! I was wondering if there's documentation on the different functions and procedures that are gained when you include the osbot library -- I have it installed but I haven't used Eclipse in forever and I wanted to read up on things before I get started. Any advice is greatly appreciated! Quote Link to comment Share on other sites More sharing options...
Medusa Posted February 9, 2021 Share Posted February 9, 2021 https://osbot.org/api/ 1 Quote Link to comment Share on other sites More sharing options...
Jarl Posted February 9, 2021 Share Posted February 9, 2021 I highly recommend reading this guide: https://osbot.org/forum/topic/115124-explvs-scripting-101/ Quote Link to comment Share on other sites More sharing options...
Gooberino Posted February 9, 2021 Author Share Posted February 9, 2021 (edited) Thanks for the fast replies guys! I have read that starting tutorial and it makes sense so far. Since it's java we're working on I assume that OSBot is multi-thread right? My biggest problem with Simba is that it's single-thread only (due to no one wanting to program it in lol) I downloaded a free script to pick apart and the tutorial posted by Jarl only imports java.awt.Graphics2D but has calls to methods in osbot while the free script had all sorts of calls to import things from osbot. Is the whole library included by default or do you have to import each one seperately? Edited February 9, 2021 by Gooberino Quote Link to comment Share on other sites More sharing options...
Tom Posted February 9, 2021 Share Posted February 9, 2021 1 hour ago, Gooberino said: Thanks for the fast replies guys! I have read that starting tutorial and it makes sense so far. Since it's java we're working on I assume that OSBot is multi-thread right? My biggest problem with Simba is that it's single-thread only (due to no one wanting to program it in lol) I downloaded a free script to pick apart and the tutorial posted by Jarl only imports java.awt.Graphics2D but has calls to methods in osbot while the free script had all sorts of calls to import things from osbot. Is the whole library included by default or do you have to import each one seperately? It will run on a single thread by default, but you CAN create your own threads, just make sure you are managing them properly and terminate them when the script is stopped Quote Link to comment Share on other sites More sharing options...
Jarl Posted February 9, 2021 Share Posted February 9, 2021 (edited) You can multithread but it seems there's not much utility in multithreading and the bot isn't really designed for multithreading so you will have to implement many things yourself to multithread yourself. Some things work asynchronously by default like onpaint and camera functions if I am not wrong. You can either start threads or make osbot events and run them asynchronously. Generally, you extend methodprovider for the methods and import classes for the functionality you need. The main class extends script which gives you the methods. Just like any other library you would need to import stuff. Edited February 9, 2021 by Jarl Quote Link to comment Share on other sites More sharing options...
Gooberino Posted February 10, 2021 Author Share Posted February 10, 2021 @Jarl could I trouble you for a demonstration? Something simple so it's not a pain in the butt for you. I assume that something like Webwalker isn't always implemented because of the memory usage (Simba has it too) so how would you go about adding that in? Quote Link to comment Share on other sites More sharing options...
Jarl Posted February 10, 2021 Share Posted February 10, 2021 Please refer to this thread: https://osbot.org/forum/topic/164541-how-do-you-handle-asyncthreads/ Quote Link to comment Share on other sites More sharing options...