Description
Description-Separate-1This example uses calls from the Windows user32.dll to programmatically take a screenshot, access the image stored in the clipboard, and save the image to a file. This method can be used in a deployed application whereas innate LabVIEW methods (Clipboard.Get Image) as not available at run-time and cannot be used in an executable.
Description-Separate-2How to Use
How-Separate-1Steps to Implement or Execute Code
- Use snippet below or download the attached LabVIEW code.
- Provided code is compatible with LabVIEW 2012 and later.
- Run VI
**Note that the VI must be set to run in a single thread (run in UI thread).**
How-Separate-2
James K.
National Instruments
Applications Engineer