Not sure on a macro.

I know with the G15/G11 keyboards, you can record a macro with the MR key.
Assigning it to any of the 54 G-keys (18 keys per bank, 3 banks of keys).
And then press the G-Key to replicate your click.