Yes, that would be allowed. You can also keybind your “macro-key(s)” as you normally would any other normal key.
To give you an example of ‘Input Automation’: Macro_key1: activate F1 through F8 (in case of not having guns grouped up). Not that it would take that long to do it manually but sometimes a battle’s flow can change in milliseconds. So I hope you can see why it is prohibited.
I’d like to add that these rules also count any physical contraptions (like taping a small wooden stick across keyboard) that one might make.