Automated farming is not allowed. Using an autoclicker to farm for you is "Hacking or Cheating" as you are using an external / third party program to influence or "get ahead" of other players (even if it is very slow.)
There is nothing wrong with using it to keep your computer from falling asleep, but there are easier ways to do this in the control panel on Windows and probably some easier ways for Macs as well.