While the idea of an automated farm is seductive, the risks far outweigh the benefits. You will likely:
You can safely use macros for that don't interact with Hay Day directly. For example: