LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

[bug] get clipboard image fails in executable

Solved!
Go to solution

The 'Get Clipboard Image' method fails for images in built executables.

It works for text (you get an image of the text back).

In the runtime environment it works ok.

LabVIEW versions:

  • 2012
  • 2013

 

Test code:

GetClipboardImage.png

 

Regards,

 

Ton

Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas

LabVIEW, programming like it should be!
0 Kudos
Message 1 of 37
(7,241 Views)

I dont think so, because in LV2011 it works

--------------------------------------------------------------------------------------------------------
Kudos are always welcome if you got solution to some extent.

I need my difficulties because they are necessary to enjoy my success.
--Ranjeet
0 Kudos
Message 2 of 37
(7,217 Views)

You want to retrive data related to image or image?

--------------------------------------------------------------------------------------------------------
Kudos are always welcome if you got solution to some extent.

I need my difficulties because they are necessary to enjoy my success.
--Ranjeet
0 Kudos
Message 3 of 37
(7,213 Views)

I want to get the clipboard image. If I run this code in the Development environment I get an image with the latest clipboard info.

If I run it (on the same) PC in an executable I get an image with the latest text data.

 

Ton

Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas

LabVIEW, programming like it should be!
0 Kudos
Message 4 of 37
(7,198 Views)

I know for sure that it worked in LV 7.0, because I had an executable which copied the image from the clipboard using that method and displayed it in a picture control (in fact, I just dug it up and ran it now with the snippet you posted and it showed it just fine). Maybe it broke at some point along the way. I actually just tested it now in 2011 and it doesn't work there either when I build an EXE.


___________________
Try to take over the world!
0 Kudos
Message 5 of 37
(7,186 Views)

check the RUN time property of all the components

--------------------------------------------------------------------------------------------------------
Kudos are always welcome if you got solution to some extent.

I need my difficulties because they are necessary to enjoy my success.
--Ranjeet
0 Kudos
Message 6 of 37
(7,179 Views)

Ton,

How about now? I meet the same issue about Clipboard.Get Image node. 

 

http://forums.ni.com/t5/LabVIEW/Write-PNG-file-failed-when-build-exe-but-run-normally-on-the/m-p/254...

Colin Zhang
------------------
LV7.1/8.2/8.2.1/8.5/8.6/9.0/2010/2011/2013/2015/2016/2020; test system development; FPGA; PCB layout; circuit design...
Please Mark the solution as accepted if your problem is solved and donate kudoes


Home--colinzhang.net: My Blog

iTestGroup: One-step test solution provider!
ONTAP.LTD : PCBA test solution provider!
0 Kudos
Message 7 of 37
(7,166 Views)

The method is not on the 'not supported in thr RTE' list, here's the detail about this method:

Remarks

The following table lists the characteristics of this method.

Data type No return value
Available in Run-Time Engine Yes (Read/Write)
Available in Real-Time Operating System Yes
Remote access allowed

Yes

 

So I have a feeling that it should work, note that is works if the clipboard has text!

 

Ton

Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas

LabVIEW, programming like it should be!
0 Kudos
Message 8 of 37
(7,132 Views)

Yes, i feel the same. 

Colin Zhang
------------------
LV7.1/8.2/8.2.1/8.5/8.6/9.0/2010/2011/2013/2015/2016/2020; test system development; FPGA; PCB layout; circuit design...
Please Mark the solution as accepted if your problem is solved and donate kudoes


Home--colinzhang.net: My Blog

iTestGroup: One-step test solution provider!
ONTAP.LTD : PCBA test solution provider!
0 Kudos
Message 9 of 37
(7,111 Views)

Why dont you store the array of pixels values to clipboard and later retrieve this only and show the image to user. This will solve the problem

--------------------------------------------------------------------------------------------------------
Kudos are always welcome if you got solution to some extent.

I need my difficulties because they are necessary to enjoy my success.
--Ranjeet
0 Kudos
Message 10 of 37
(7,104 Views)