in reply to Reading from a GUI application

But I do not know how to read anything from the application window.

Have you looked at the documentation? It mentions a GetWindowText function right in the synopsis. Have you tried it? If yes, what's the problem with it? If not, why not?