This can be done using native non-script KM Actions, but I prefer the compactness and reusability of a script. See:
For more information, see the wiki Searching the Forum for Answers section.