What you're looking for is something called a macro. A macro is a set of instructions that you can record and play back to automate common tasks and other things.
Here is a link to get you started, there are some nice free macro programs out there. Do a google search for macro and see what comes up. http://www.vsisystems.com/macrowizard.htm