m417z / Textify

A tool for Windows to copy text from dialogs and controls which don't allow it otherwise
https://ramensoftware.com/textify
GNU General Public License v3.0
913 stars 76 forks source link

4,096 character limitation #10

Closed vertigo220 closed 3 years ago

vertigo220 commented 3 years ago

I just used this to copy a big error message, but it will only show (and therefore allow me to copy) the first 4,096 characters. Due to that very specific number, and the fact it ended abruptly in the middle of a line, I can only assume it's a limitation based on characters vs something else. In case it matters, the dialog was an error message when trying to run Borderlands 1 via Steam, and it has the Borderlands icon, though no other distinguishing features.

m417z commented 3 years ago

The limit is imposed by the target program, not Textify. See the discussion here: https://rammichael.com/textify/comment-page-3#comment-8942

Quoting the relevant part:

Q:

Is there any ‘number of characters’ limit to this? Currently I see a maximum of 4100 characters copied to windows clipboard. What if I have to copy an entire web-page having about 15000 characters? Can this functionality be added? or Is it possible to modify the source code?

A:

Not in Textify. Textify uses the UI Automation API, and usually the target application, which provides text via this API, limits the length. For example, you can try and see that Notepad has a different limit than Chrome.