In order to make a good antiban system you have to first understand why you're being detected and banned in the first place, then write your antiban system around that. For instance, we know fagex has some form of pattern recognition and repetition is easily detected. So instead of having your script walk the same exact path over and over again, you'd do something like - Generate a unique path each time and randomize the coordinates your mouse clicks.
Generally everything and anything unhuman-like that can be detected using low cpu power is what fagex would look for first, tasks that consume moderate to high cpu power wouldn't be wasted on an account that isn't suspected of botting in my opinion. Instead, they'd wait until they have some sort of indication, why is why we see people banned after so many hours of botting, something finally trips their bot detection system and the bot detection system investigates the account further.