ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Screenshot with LabVIEW

Is there a possibility to get screenshots of the whole screen (not only LabVIEW Frontpanels), or Screenshots of windows of other applications - using LabVIEW?
(Windows ME, XP)
0 Kudos
Message 1 of 4
(3,816 Views)

I'll throw out the nasty way first for others to improve on:

You can use the user32.dll to enter key-presses, I've built labview serial and tcp/ip wrappers to do that for control of unfriendly instrument applications.  You would enter <alt><prt scr> and then your screen capture is on the clipboard. 

somebody come up with a better solution...

 

Sheldon

Technical geek, engineer, research scientist, biodegradable...
0 Kudos
Message 2 of 4
(3,794 Views)

I do not know of a pre-canned vi to do this but sheldon's solution should work, I believe that he is creating keystrokes from at the OS API level to simulate pressing the key combo to trigger the screen capture program.  There are a few other ways to do this (none labview native since this is at a level below the labview application and will be windows platform dependent).  You can write a win32 c program to do this and call it from windows, the program is relatively short I wrote one a while back (modified a version of a source I downloaded) using gdi calls where you get a handle to the desktop window, create a compatible DC copy the DC to a bitmap and save it to file, or maybe there is a way to invoke the screen capture program with a script or directly from the WIN32 api.  Sorry I don't have a simple answer but there might be a simple way to invoke the screen capture program directly without any dll calls from labview.

 

 

Paul Falkenstein
Coleman Technologies Inc.
CLA, CPI, AIA-Vision
Labview 4.0- 2013, RT, Vision, FPGA
0 Kudos
Message 3 of 4
(3,783 Views)
Try G Toolbox  - > SnapView
George Zou
0 Kudos
Message 4 of 4
(3,771 Views)