LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

PrtScr

I'd like to capture the screen from a LabWindows/CVI 5.5 prog.
How do I do something similar to the [PrtScr] key that put the screen in the
clipboard ?
-----------
Guillaume Dargaud
CNR/IFA
http://sung3.ifsi.rm.cnr.it/~dargaud/
http://sung3.ifsi.rm.cnr.it/~domec/
http://sung3.ifsi.rm.cnr.it/~chooyu/
"I like pigs. Dogs look up to us. Cats look down on us. Pigs treat us as
equals." - Winston Churchill.
0 Kudos
Message 1 of 4
(3,538 Views)
There are a number of programs that do this. I like PrintKey,
a free program available at http://www.geocities.com/~gigaman/
and at various shareware archives (tucows.com, zdnet, etc.)
The shareware archives have lots of other programs that do the
same thing.

You can also use the [PrtScr] key to copy the entire screen to
the clipboard, or use [Alt PrtScr] to capture just the current
window. Then paste the image into another program for
documentation or printing. I paste the images into Word
to produce manuals for my programs.

Hope this helps,
Reed.
//----------------------------------------------------------
Reed Blake
Beta Technology
Industrial and Scientific Computing

Guillaume Dargaud wrote in message <38ec51b3@newsgroups.ni.com>...
>I'd like to capture the screen
from a LabWindows/CVI 5.5 prog.
>How do I do something similar to the [PrtScr] key that put the screen in
the
>clipboard ?
>-----------
>Guillaume Dargaud
>CNR/IFA
>http://sung3.ifsi.rm.cnr.it/~dargaud/
>http://sung3.ifsi.rm.cnr.it/~domec/
>http://sung3.ifsi.rm.cnr.it/~chooyu/
>"I like pigs. Dogs look up to us. Cats look down on us. Pigs treat us as
>equals." - Winston Churchill.
>
>
0 Kudos
Message 2 of 4
(3,538 Views)
Hello Guillaume,

There is an easy way to do this. First you capture the panel image as a
bitmal, then paste the
bitmap to the clipboard.

Here is a snippet of the callback function that would do this:

/*--------------------------------------------------------------------------
-*/
/* Copy the image of the panel to the Clipboard.
*/
/*--------------------------------------------------------------------------
-*/
void CVICALLBACK CopyPanelImageCallback (int menuBar, int menuItem,
void *callbackData, int panel)
{
int bitmap;

GetPanelDisplayBitmap (panel, VAL_VISIBLE_AREA, VAL_ENTIRE_OBJECT,
&bitmap);
ClipboardPutBitmap (bitmap);
DiscardBitmap (bitmap);
}

I found this in the example that shi
ps with CVI 5.5 in the following
directory:

"c:\MeasurementStudio\cvi\samples\userint\clipbord.c"

Cheers,

Azucena



"Guillaume Dargaud" wrote in message
news:38ec51b3@newsgroups.ni.com...
> I'd like to capture the screen from a LabWindows/CVI 5.5 prog.
> How do I do something similar to the [PrtScr] key that put the screen in
the
> clipboard ?
> -----------
> Guillaume Dargaud
> CNR/IFA
> http://sung3.ifsi.rm.cnr.it/~dargaud/
> http://sung3.ifsi.rm.cnr.it/~domec/
> http://sung3.ifsi.rm.cnr.it/~chooyu/
> "I like pigs. Dogs look up to us. Cats look down on us. Pigs treat us as
> equals." - Winston Churchill.
>
>
0 Kudos
Message 3 of 4
(3,538 Views)
Well, I wanted to be able to capture more than a panel (the full screen,
another active app...).
So I used a couple SDK calls and wrote a little prog that does it for me.
Anybody interested can download it at:
http://sung3.ifsi.rm.cnr.it/~dargaud/Hack/PngSnapShot.html
or view what I use it for (real-time monitoring of a radar) at:
http://radarpct.ifa.rm.cnr.it/


> There is an easy way to do this. First you capture the panel image as a
> bitmal, then paste the
> bitmap to the clipboard.
[snip]

> > I'd like to capture the screen from a LabWindows/CVI 5.5 prog.
> > How do I do something similar to the [PrtScr] key that put the screen in
> the
> > clipboard ?
-----------
Guillaume Dargaud
CNR/IFA
http://sung3.ifsi.rm.cnr.it/~dargaud/
http://sung3.ifsi.rm.cn
r.it/~domec/
http://sung3.ifsi.rm.cnr.it/~chooyu/
http://sodaracq.ifa.rm.cnr.it/
http://radarpct.ifa.rm.cnr.it/
"When Roman engineers built a bridge, they had to stand under it while the
first legion marched across. If programmers today worked under similar
ground rules, they might well find themselves getting much more interested
in Ada !" - Robert Dewar, President Ada Core Technologies.
0 Kudos
Message 4 of 4
(3,538 Views)