10-14-2013 11:32 AM
Hi to everyone, I want to call Snipping Tool from LabVIEW using the System Exec VI, but I always get an error 2; this not happen when I call another executables like calculator or paint; I hope someone can help me or tell me why this error occurs.
Thanks in advance, I have attached a couple of images of the VI that I have done so far.
Solved! Go to Solution.
10-14-2013 12:33 PM
First, you will need to tell us what is "Snipping Tool"? What does this application do? How would you interact with it if you weren't using LabVIEW?
10-14-2013 12:55 PM
Hi, the Snipping Tool is the screenshot tool that has Windows in accesories since his version 7: http://windows.microsoft.com/en-us/windows7/use-snipping-tool-to-capture-screen-shots
I want to use this to save an arbitrary part of the screen after a measurement process, I know there are some other ways to achieve this task but I want to use the Snipping Tool because is very flexible and this can capture any part of the screen and not only the front panel like the invoke node FP.GetImage, moreover I want to avoid extra processes like cutting the images, etc.
Thanks for your interest.
10-15-2013 05:56 PM
Hey there ;
I am guessing you are using the command: SnippingTool or SnippingTool.exe, just as you would use mspaint; but it is giving you Error 2; this is a Windows Issue more than a LabVIEW one, ,you can try using command:
C:\Windows\Sysnative\snippingtool.exe;
it worked for me; i found this info in the KB below.
Good luck
10-16-2013 10:16 AM
It works, thank you Marisol!