Cloning a Window

Is it possible to clone a window of a program so that you essentially have two copies? and if the window you are cloning updates, the clone will update also?

If the window to be cloned uses a custom display control can you make it so the clone instead uses a standard windows control to make interacting with the clone easier?

Sorry guys I'm a full fledged newbie at programming :)
definitely possible.

No it isn't. You can create another window which draws itself using the same data as the original, or with any variations you wish.

What are you trying to do? Are you trying to modify an existing program so it is more to your liking? Or are you trying to write some unusual program that maintains multiple windows?
That's exactly what I was thinking... drawing the same objects on the screen as the copy being cloned. That's not a clone? Well I guess I answered my own question. It's a copy -- which is a clone.
Last edited on
Ah, terminology... alas.
Yeah sorry guys I failed to specify, I did mean creating another window and not simply copying it with a screenshot or something. Probably impossible.

I'm just trying to work out a way to copy text that won't allow itself to be copied because it is using custom display controls so the standard windows controls won't return/extract any data. Even copying to the clipboard will not work.

I can prob sniff mem but it is dynamically allocated with this program meaning the data will be jumbled and not in any comprehensible order, and I'm in no position to work out how to reverse it and piece it back together.

I can also use OCR but that is too slow and unreliable for what I'm doing so I'm looking for other methods.
So you are trying to get text out of someone else's program?
yes exactly! Sorry my OP was written late at night. Shouldn't have taken us this long to get this far, my bad.
It may or may not be possible -- doing so is something of a black art, and it might not be worth the effort to do it.

Have you looked at Spy++
http://msdn.microsoft.com/en-us/library/aa264396%28v=vs.60%29.aspx
or SysExporter
http://www.nirsoft.net/utils/sysexp.html
or TextCatch
http://www.skesoft.com/textcatch.htm

Here's more reading
http://stackoverflow.com/questions/352236/reading-from-a-text-field-in-another-applications-window
http://www.codeguru.com/forum/showthread.php?s=&threadid=286053

Good luck!
Thanks, I've looked at it in Spy++ and none of the text shows up because it is a custom control- wmgettext etc will not work with this

The links you posted talk about how to do it with wmgettext but this solution is not possible for my situation unfortunately.
Topic archived. No new replies allowed.