I use Hammerspoon (OS X) for macros, but same kind of thing.
I have some text shortcuts, example:
me@someemail.com
------------------------------------------- (for separators)
TODO: (for bugs I need to return to)
I have a key (scroll lock) assigned to left mouse click. Often enough I'm repeating a sequence I can do all of with my keyboard, except clicking "OK". I leave my mouse over the location of the OK button and hit Scroll lock when the time comes.