If you want to write your own macro, you need to translate your step-by-step workflow into KM actions. You may need this to start:
For more information, see the wiki Searching the Forum for Answers section.