I would like to do this sort of like a macro. Is there a program that can handle this function?

Thanks!

A