I need to run some code to capture a window of an application running on a Windows desktop (Windows XP is fine here).
There are several examples of VB6 on the Internet, but they tend to only capture a VB6 application or desktop. I am looking for a solution that captures a given window / application. So, I want to be able to specify the name of the app window to capture.
A quick search of Bing led to some code examples, but they captured the desktop or the current VB6 application. I want to change one of them to capture this window (named application).
However, before I do this, maybe someone has a link to sample vb6 or VBA library code that will capture / save the given named application window for BMP or some type of image file on the hard drive.
The link to the VB6 or VBA solution here is just fine. I am ready to modify an existing example.
source share