I'm on my way out the door, but here's a quick example.
Text Window Macro (v9.0.4)
Text Window.kmmacros (4.3 KB)
For more information, see the wiki Searching the Forum for Answers section.