Forum Discussion

pankajlalsare's avatar
pankajlalsare
Occasional Contributor
14 years ago

Capture image of a window, ignoring other dialogs overlapped on it

Hello,

Want to capture an image of a window say "WindowA". But there are some tool strips, small dialogs which are movable [like one can drag those from one location to other]. Such dialogs are present on "WindowA"

Now want to capture image of only "WindowA", but not working. All other overlapped dialogs, tool strips are coming on that.

I do not want to move them each time capturing an image of WindowA.



Is there any solution to this ?



Thanks!

-Pankaj

3 Replies

  • pankajlalsare's avatar
    pankajlalsare
    Occasional Contributor
    Hello,

    Actually No. After activating the desired window, it does get activated but the overlapping dialog still stays on top of it. So when i capture image i get both the windows. I am looking for some code where i can capture image of the desired window, even if there are overlapping windows on that.



    The only way is to drag the overlapping window to some other location and then capture image of desired window, but this is painful when there are multiple overlapping windows.



    Thanks!

    -Pankaj

  • Hi Pankaj,





    Which method are you using to capture a picture of the needed window?





    For better understanding, please create an object snapshot of the entire tested application's process and send us the resulting .tcObject file along with screenshots demonstrating the problematic overlapping dialogs. Please see the "Save Object Snapshot Dialog" help topic for details. Note that you need to select the "All properties" option and check the "Save recursively" check box within the Save Object Snapshot dialog.