Onayr Posted March 9, 2020 Posted March 9, 2020 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.
Gunman Posted March 9, 2020 Posted March 9, 2020 @Onayr Look at #15 here https://osbot.org/forum/topic/115124-explvs-scripting-101/
Onayr Posted March 10, 2020 Author Posted March 10, 2020 Thanks for the quick reply @Gunman! I'll try to build closer to that structure and see how it turns out 1
splatbug Posted March 10, 2020 Posted March 10, 2020 10 hours ago, Onayr said: Thanks for the quick reply @Gunman! I'll try to build closer to that structure and see how it turns out good luck! 1