I am writing an Add in for a Desktop Application. I do not have the access to code the Desktop app but I need to capture all windows that are related to that from within my Add in. Anything not related to app should not be captured. All windows might not be the new processes. Any idea How can i achieve this?
Asked
Active
Viewed 831 times
1
-
The Windows of the Application may be on Different Screens and may have other Apps in Background, but screenshot of only related windows should be captured. – Faizan khan Aug 11 '17 at 04:52
1 Answers
0
You could try to do the following:
- Identify the desktop app's process id and any child processed it may have spawned
- Build a list of all windows that belong to the process id(s) identified previously (try @Konstantin Spirin's proposed solution)
- Do a screenshot of each of the windows (try out @Maurice Flanagan's solution)

Mihai Pantea
- 360
- 3
- 8