Logitech Ghub toggle macro key

I have a simple question. For pickpocketing NPCs in LBRS, I want to spam my action bar WoW macro for PickPocket. Instead of hitting the key a million times with my finger, I’d like to use my Logitech mouse to constantly spam “1” (the Pick Pocket macro) while I run around the dungeon….

Since cast and toggle WoW option in-game apparently don’t work for this, can I use Logitech G Hub instead? Or would that make me the biggest villain on the planet, risking a ban for doing so?

It meets Blizz’s definition of automation. Use at your own risk. See section 1 C ii 2