Set keybinds under "Recording" in Options/Controls.
Choose ten bricks you want to use in the macro. (or less)
Place the first one as a temp brick.
Press the Toggle Macro Recording key.
Move the brick around via the numpad (not brick placer) and plant bricks.
You can use the Paint Can to recolor bricks before they are placed. (Painting them won't save in the macro)
Press the Toggle Macro Recording key.
Place that first temp brick somewhere else.
Press the Playback Macro Recording key.
Watch as it builds itself.
If you use the same temp brick and colour at the end as the start, you can have a repeatable macro to make things like brick walls or evenly spaced fencing easily.
Download and use Ephialtes'
Macro Saver to save general macros for use in other servers.