I had a similar idea - to use OCR as a universal plugin for applications. 4 ex., telegram did not display the name of the interlocutor in the window title before, and all my clients are in telegram. Everything goes through auto-tags, and telegram has to be filtered every month when billing and tagged manually by screenshots. But it writes the name of the one with whom you communicate in a fixed place by fixed coordinates from the upper-left corner of the window. For each application, you can make this configurable and... well, you get the idea...
I had a similar idea - to use OCR as a universal plugin for applications. 4 ex., telegram did not display the name of the interlocutor in the window title before, and all my clients are in telegram. Everything goes through auto-tags, and telegram has to be filtered every month when billing and tagged manually by screenshots. But it writes the name of the one with whom you communicate in a fixed place by fixed coordinates from the upper-left corner of the window. For each application, you can make this configurable and... well, you get the idea...