I was just trying to do this with a macro, but I can't seem to get the timing right.
Using my mouse's software I can make macros to do anything and edit the timing between each button press.
At first I tried 0ms delay between actions, then various other times but can't get it to work.