Script to Copy Text From a Popup Message When Ctrl C Doesn't Work

If Control C will not capture text from a popup message window, you can use Alt-PrtScn, paste into Paint, save to a TIF file, open that with Microsoft Office Document Imaging, choose Recognize Text using OCR, and then Send Text to Word.  Here is an AutoIt script to do that.  Several assumptions are made:  An image is already in your paste buffer, c:\temp\ocr.tif exists, location of %windir% and %ProgramFiles%, etc.  You may have to tweak the sleep statements and as always, your mileage may vary.  [more]

<script language="AutoIt">
; Do OCR on paste buffer
Run("c:\windows\System32\mspaint.exe")
WinWait ("untitled - Paint")
WinActivate("untitled - Paint")
Sleep(500)
Send("^v")   ; Paste in image
Sleep(2000)
Send("!FA")   ; Save as a TIF file
Sleep(1000)
Send("c:\temp\ocr1.tif{TAB}T{ENTER}")
Sleep(1000)
Send("Y")   ; Yes to replace file
Send("!FX")   ; Exit Paint
Sleep(1000)
Run("C:\Program Files\Common Files\Microsoft Shared\MODI\11.0\MSPVIEW.EXE")
WinWait("Document1 - Microsoft Office Document Imaging")
WinActivate("Document1 - Microsoft Office Document Imaging")
Send("!FO")   ; Open in Microsoft Office Document Imaging
Sleep(1000)
Send("c:\temp\ocr1.tif{ENTER}")
Sleep(1000)
Send("!TR")   ; Recognize Text
Sleep(3000)
Send("!TT")   ; Send Text to Word
Sleep(1000)
Send("{ENTER}")
</script>

General AutoIt script