You could probably use keyboard macros if you have the right software.