what is this?
Code to return the window text of any window. If the window is a top level window then this returns it's captions.

The API calls required are: SendMessage, GetWindowTextLength and GetWindowText

Hope this helps,
Duncan