Man, Google is really failing me here.

I'm looking for a way to screen-scrape the text off of the window of a running application. I want to get the same information you'd get by running "Spy++" and then drilling down into the various windows and controls of the application.

The trick is I want to do this programatically, from a script, such as a batch file or a VBScript file. All of the applications I've seen that have functionality similar to Spy++ are all GUI apps without a command-line equivalent. I don't know of a way to directly window-scrape from a batch file, and a VBScript won't let me call the GetWindowText API directly.

Searching for scraping utilities gets me a lot of links to software designed to scrape web pages. But it's an app I want to scrape, not a web page.

I could theoretically write this whole thing in C/++/# but I'm trying to do this as a plain-text script without needing a compiler or a development environment.

Any ideas?
_________________________
Tony Fabris