02-23-2021 06:52 PM
Thanks for Colin's solutions (http://www.colinzhang.net/2013/09/worklog-how-to-get-image-from-clipboard.html ). Perfectly solved the problem.
Can save clipboard picture as PNG format in executable file made by LV 2017.
02-25-2021 03:49 AM
Home--colinzhang.net: My Blog
03-05-2023 09:45 PM
To Capture just the Active Window requires two keys to be pressed. ALT + PRINT SCREEN. The example mimics both keys being pressed but only releases the ALT key , leaving the PRINT SCREEN key pressed which then 'confuses' the .NET action (for me it also left most of the keyboard inactive).
SOLUTION: before releasing the ALT key insert another call to the kbd-event function to release the PRINT SCREEN key
arg1 (0x2A - PRINT SCREEN)
arg2 0
arg3 2 (Release Key)
arg4 0
Alt-PRINT SCREEN now works for me in both environments.
03-05-2023 09:47 PM
To Capture just the Active Window requires two keys to be pressed. ALT + PRINT SCREEN. The example mimics both keys being pressed but only releases the ALT key , leaving the PRINT SCREEN key pressed which then 'confuses' the .NET action (for me it also left most of the keyboard inactive).
SOLUTION: before releasing the ALT key insert another call to the kbd-event function to release the PRINT SCREEN key
arg1 (0x2A - PRINT SCREEN)
arg2 0
arg3 2 (Release Key)
arg4 0
Alt-PRINT SCREEN now works for me in both environments.
06-10-2025 05:03 AM
Hi All: I'm now using LabVIEW 2023 32-bit and it looks that the bug is still present.
I tried the solutions of this thread without any successs.
For others who have the similar problem (not able to read the ciipboard image when run as exe) I have a workaround.
Use this solution using a .net 8 dll that does the job.
I tested it with LV2023 and for me it works great, it only reads 24 bit images.
06-10-2025 06:14 AM - edited 06-10-2025 06:15 AM
@Andre_FR wrote:
For others who have the similar problem (not able to read the ciipboard image when run as exe) I have a workaround.
Or, alternatively, you can use IMAQ ClipboardToImage, but this function is only available if the Vision Development Toolkit is installed (by the way, the "opposite" IMAQ ImageToClipboard VI is also exist.)