there are two powerful 3rd party program that let you make macros. just google them and you get lots of guide on how to use them.
1. XPADDER (the softcore option)
.. PRO: simple GUI interface, allow for turbo, toggle and simple repeating macro (not inf loop)
.. CON. cant do logic tree, ie there is no if, then logic function.
........in fact it have zero programming features.
2. AUTOHOTKEY. (the hardcore option)
..PRO: full programming language, anything you can do with a keyboard/mouse/controller can be macroed, including what you can see on screen or read in logs (although that required some hardcore coding)
...... anything xpadder can do, it can do better. including inf/toggle loops, logic functions, and if you are very hardcore you can even automate action (ie bots)
..CON: you need at least some novice skill in programming.
btw.. these software are freeware, or if look hardenough you'll find a free copy of xpadder. 4.2 i think.