Wednesday, 2 June 2010

Copy and Paste from a MessageBox



Often I find a message box pops up with a message that I want to record, such as an error, and I normally take a screenshot of the active window (Ctrl+Alt+PrntScrn) which is all well and good, and is how I took the above screenshot.

Now I really just want the text and sometimes a picture may not cut the mustard, i.e. entering into an issue trackers 'Description' field, and you don't want to type long messages out by hand.

But I never knew - and I hope I'm not the only one - that if a message box is highlighted, and you use the traditional Ctrl+C keyboard shortcut for copy. It will copy the text to the clipboard. Not just the message, but all text displayed.

For example the above dialog provides the following text extract:

---------------------------
TestTitle
---------------------------
TestMessage
---------------------------
OK  
---------------------------


As you can see you get the Title, the Message (what we want), and the button text. Why it took me this long to find this out I don't know!

No comments:

Post a Comment