LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to save a screenshot of the desktop programmatically?

Hi!

I am looking for a solution which allows me to incorporate a screenshot image of the current desktop into a report. Yes, I know, there are vi's which save a screenshot of a particular panel but I must save the desktop with more than one panel being visible at a time.

On one of my panels, I have a tab control with several tabs. Does anyone have an idea how I can save the current content of a tab page which is hidden at the instant when the screenshot is being made?

Thanks for any advice,
Peter
0 Kudos
Message 1 of 2
(2,899 Views)
For the second thing, I think you will have to scroll through the different pages and take a screenshot (or get the control's image) each time. You can do this by creating a local variable of the control.

As for the first part, there are software solutions like Snagit. Maybe some of them have a DLL or ActiveX interface you can use. Along the same lines, maybe there is a windows API function you can use. Try searching the MSDN for one.

Another possible option is G Toolbox. I don't know if it can do this, but it does similar things, so maybe this as well.

___________________
Try to take over the world!
0 Kudos
Message 2 of 2
(2,883 Views)