Try this:
- Start Notepad
- Type some text
- Select File, Exit from the menu
- When the confirmation dialog appears, hold down the Ctrl key and press C
- Click the Cancel button to cancel the Exit
- Select Edit, Paste from the menu
---------------------------
Notepad
---------------------------
The text in the Untitled file has changed.
Do you want to save the changes?
---------------------------
Yes No Cancel
---------------------------
I use this technique to easily copy error messages into my bug reports.
I also use this technique in some of my Test Automation Scripts.