LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to read screendump image from clipboard to a file

I am trying to build a program that runs minimized while other programs are being used at the same moment. At certain moments I want to make a screenshot and save that information to a image file on the harddisk.
I have now the "user32.dll" to work and generate a "printscreen" push button. Now I want to write the information on the clipboard to an image file.
How can I read the information on the clipboard and use it in a VI?
 
Thanks in advance.
Ferry
 
0 Kudos
Message 1 of 6
(3,438 Views)

Under the graphics and sounds pallette>>graphic formats  you will find functions to take and image in and then write it to a file.    Also you can check this link out

http://sine.ni.com/apps/we/niepd_web_display.display_epd4?p_guid=B123AE0CBB2A111EE034080020E74861

Hope this helps.

BJD1613

Lead Test Tools Development Engineer

Philips Respironics

Certified LV Architect / Instructor
0 Kudos
Message 2 of 6
(3,432 Views)
If the screen you want to capture is a VI, you should use Invoke Node -> Get Panel Image, and Write BMP File.vi.
See attached VI.
 
If the screen isn't made in LabVIEW, and it's minimized, printscreen can't catch it.
 
To save the clipboard image to file, you can import the clipboard image into LabVIEW first
(use Image Toolbox: http://www.geocities.com/gzou999/imgtool.htm), and then Write BMP File.vi
 
 
George Zou
George Zou
0 Kudos
Message 3 of 6
(3,422 Views)
The "Import Bitmap.vi" would probably be a good option for me, but unfortunately I get an error message with my labview version, 7.1..
Is there anyway to update this vi?
0 Kudos
Message 4 of 6
(3,404 Views)
Import Bitmap demo for LV7.1 is available at:
George Zou
0 Kudos
Message 5 of 6
(3,384 Views)
thanks,
 
works really great!
0 Kudos
Message 6 of 6
(3,360 Views)