I am new to programming, I want to write a program (just for self-use) that will repeat a preset set of keyboard actions every time it is run, can anyone give me some advice? are there any applications that can do this already?
There are a pretty good variety of programs out there that do what you're looking for. If you're on windows, autoHotKey will set you right. On Mac, it's automator (built-in) or Keyboard Maestro to the rescue.
These use a domain specific language for creating macros, which will be much simpler than attempting something yourself from scratch in a more general purpose language.