How to get contents of active window

Hello.
I would like to be able to get information about the active (focused) window and extract its contents. Any suggestions?
Thank you
You need EnumChildWindow.
And GetForegroundWindow.
Topic archived. No new replies allowed.