Auto-detect all paragraphs and Select them with mouse Macro (v11.0.2)

As stated in the comment in the macro below, this is a research/proof of concept macro to share some techniques that use OCR to auto-detect the location of paragraphs in a window. At this moment it is intended for macro developers only, since it may not work as is for other people due to screen resolution issues.

A couple of days ago someone was asking in another thread if it was possible for a KM macro to find and select paragraphs of text in an app called Kindle. This macro shows that it should be possible, although this app is using TextEdit as the target app instead. This app is for discussion/research at this time.

Right now, what this app does is autodetect all the paragraphs in the TextEdit window and use the mouse to automatically select each one of them, with a 1.5 second pause between each selection. It works for me but it may not work for others without modification.

Auto-detect all paragraphs and Select them with mouse Macro (v11.0.2)

Auto-detect all paragraphs and Select them with mouse.kmmacros (14 KB)