^This is an example of a macro.
You don’t have to take my word for it since this question has been answered by staff across multiple Blizzard forums. Here’s one example: Can I be banned for using Autohotkey? - #5 by Drakuloth
If you are using it for normal hotkeying where one button creates one basic action you could normally do with a mouse or keyboard, where you fix a click problem, where you’re binding q to your page forward button, whatever, you should be fine.
One button can equal one action.