LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

remote print screen

Hi,
Does anybody know how do I perform "PrintScreen" command on a remote computer using DOS command line or C function.
I am using Windows XP on the remote system.
Thanks in advance,
Moshik
0 Kudos
Message 1 of 4
(5,704 Views)
> Does anybody know how do I perform "PrintScreen" command on a remote
> computer using DOS command line or C function.
> I am using Windows XP on the remote system.

Run this on the remote system:
include <winuser.h>
...
keybd_event(VK_SNAPSHOT, FullSnap, 0, 0); // 1 for full screen, 0 for
top Window
Delay(2.); // Small delay
Error=ClipboardGetBitmap (&BmpID, &Available);
...
Status = AllocBitmapData (BmpID, &ColorTable, &Bits, &Mask);
...
Status = GetBitmapData (BmpID, &RowB, &PixDepth, &Width, &Height,
ColorTable, Bits, Mask);

And then save the bitmap data to a PNG/TIFF file (see ReadSavePng.fp on my
site).


But why don't you simply use VNC ?
--
Guillaume Dargaud
http://www.gdargaud.net/




0 Kudos
Message 2 of 4
(5,682 Views)

Hi,

First of all  - thanks for your reply.

I am trying to write an automatic application that will run on my computer for example and will be able to perform Print screen on a remote computer that I choose by getting its IP or Computer name. Your solution is good if running from the remote computer but it does not help me unfortunatly. I might use it in order to write an .exe file that will be placed on the remote computer and try to run it from mine.

Thanks,

Moshik

0 Kudos
Message 3 of 4
(5,676 Views)

Hello,

 

I am trying to do the exact same thing as mentioned above. I have a Desktop and a Laptop. I want to take a screen shot from the Desktop's Screen remotely, using my Laptop. The most I have found is this, which gave me some insight into the complexity of taking a Screen Shot but still gave me no ideas for taking a screen shot remotely. If anyone has any new information on this topic, it would be great.

 

Thanks

0 Kudos
Message 4 of 4
(4,079 Views)