To answer the OP, using software outside of the game's functionality to alter gameplay is against the Terms of Service you agreed to when
Hardware that can emulate this functionality falls outside enforceable scope of your agreement.
Software drivers that come with the device to allow the device's macro functionality fall into a gray area such as an XKeys USB product. I would recommend refraining their macro features in-game and contact Square Enix through their North American support website.
Please note, if you're macro software is reading game states or is using conditionals, it is in violation of the Terms of Service and you are proceeding at your own risk. I hope some of this information could be of use to you and others in a similar situation.