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.