Jump to content
Gooberino

OSBOT documentation?

Recommended Posts

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 by Gooberino
Link to post
Share on other sites
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

Link to post
Share on other sites

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 by Jarl
Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...