Virus scan in progress. Please wait to download attachments.
This 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.
How to Use
Steps to Implement or Execute Code
Use snippet below or download the attached LabVIEW code.
Provided code is compatible with LabVIEW 2012 and later.
**Note that the VI must be set to run in a single thread (run in UI thread).**
James K. National Instruments Applications Engineer
Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.