FindWindowLike puts it's result into an array. You may have to use the second (or third) item in that array if you can be sure that the number of such windows is always 2.
Sander Pool <sander@...
I've been trying to automate a small application called Attrib from
Network Appliance. I do not have access to the source code or the
developers. The application performs attribute test and the results are
shown in two columns of Edit controls, one for successes, the other for
failures. After running the application for a while I stop it and want
to retrieve the values from the Failure Edit controls.
I used WinSpy to obtain the IDs of the Edit controls. All seemed fine
until I noticed that FindWindowLike sometimes returns 2 windows. Using
WinSpy I confirmed that the same control ID indeed occurs more than
once. They are of the same class and have the same properties except
Why would these IDs be the same? Sloppy programming? I'm surprised
Windows allows it. Is the location really the only way to tell these
controls apart? I'm curious how commercial capture and playback tools
deal with this situation.
[Non-text portions of this message have been removed]