Easy way to get a working makro as starting point:
Choose some of nodes and right-click (or shift+m) on them, this will start the macro-maker. Store makro in shake directory and accept the default parameters, and have look on the new files below the shake directory (/include/startup and /include/startup/ui). Modify these to match your needs.
Otherwise, as said before, docs are really good. Make sure you read the tutorial "GUI Advanced/How to make a Macro".
Have fun.