How can I copy the full text of a Windows program's titlebar, the actual letters not just a screenshot, to then paste into e.g. Notepad? In this example, I'd like to get the literal text
screenshot.png - IrfanView (Zoom: 1674 x 1046) (Selection: 811, 212; 2137 x 1312; 1.629)
Saving the text to a hardcoded filename or someplace else is fine, too. I just want to avoid manually reading it and typing it, which is slow and error-prone.
EnumWindows()
,GetWindowText()
, write to the windows clipboard, open the notepad,SetWindowText()
on the text control.. or even open a text file and dump.