Once that's taken care of, then you just write a very small keyboard macro (in Python) which uses xdotool to issue the mouse event and then sleep for one second divided by the number of events you want per second.
The easiest way IMHO to do that is with AutoKey which provides that feature along with a whole lot of other keyboard automation features.
First, you have to bind your key to run code.