You may program the preferable scripts to upgrade your mouse.
Automate series of mouse clicks at specified X-Y points on the screen.
It allows you to record and playback keyboard and mouse actions.