I have not tried this yet but it looks promising.........
AutoHotkey is a free, open-source utility for Windows. With it, you can:
Automate almost anything by sending keystrokes and mouse clicks. You can write a mouse or keyboard macro by hand or use the macro recorder.
From the web document : AutoHotkey - Free Mouse and Keyboard Macro Program with Hotkeys and AutoText