There are no tutorials for this. It's a very short macro. Read it and then ask me your questions.
Basically, I'm using OCR to read all the words on the window, and letting the user take an action if the number of "unique words" differs by a certain amount.