Jump to content

Necessary Sleep Calls


Recommended Posts

Posted

Hey All, 

Just started working with osbot scripting a little while ago and I am noticing I have to sleep after every single action or else the action often doesn't take place. Is this normal behavior? 

For example a simple

getTabs().open(Tab.Magic);

often won't open the desired tab unless I sleep for around 500ms afterwards. I thought for the most part conditional sleeps were built into the functions but in practice it will often return true without finishing the action. I guess it's probably good practice to put sleeps after everything anyways to reduce ban rates but just wanted to know what best practices were around that.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...