I believe macros are not allowed
In the TOS it says
Code of Conduct. While using the Service and Software, you agree to comply with all applicable laws, rules and regulations. We reserve the right, in our sole discretion, to take any actions we deem necessary and appropriate to preserve the integrity of the Service and Software. We further reserve the right to determine what conduct is outside the "spirit" of the Service and games provided therein. While using the Service, you agree not to:
Engage in using macros (i.e., "macroing"), auto-looting or robot play (i.e., "booting") or any other behavior that allows you (or any character you are controlling) to automatically function or effect any action in a game with or without your presence