LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to save screen from windows media player programically

hi all

i use windows media player 11 and labview 2010 .

i need play a movie in labview and get snapshot from it.

i can play movie.

i use invoke node but it save only black screen.

please guide me

with regard

0 Kudos
Message 1 of 12
(3,899 Views)

Hi poorabedi,

 

Can you post the VI you are running that performs this action? I don't know what you mean when you say you use an Invoke Node, are you using the FP.Get Image method? Also, could you better describe what you are trying to do? That would help me to point you in the right direction.

 

Regards,

Peter W.

0 Kudos
Message 2 of 12
(3,876 Views)

hi Peter and thanks for your reply

i attached my code and the saved picture.

i need to save the picture is in screen but only a black screen is saved.

what's your suggestion?

 

0 Kudos
Message 3 of 12
(3,865 Views)

and the saved picture

0 Kudos
Message 4 of 12
(3,864 Views)

Hi poorabedi,

 

I tried to look into the Write JPEG File.vi and it asked for a password. Could you personal message that to me so I can look through all of the code?

 

Regards,

Peter W.

0 Kudos
Message 5 of 12
(3,848 Views)

Peter W wrote:

I tried to look into the Write JPEG File.vi and it asked for a password. Could you personal message that to me so I can look through all of the code?


Write to JPEG file is NI-supplied, so I suppose you'd have a better chance of getting the password than the OP.

0 Kudos
Message 6 of 12
(3,842 Views)

hi Peter

the Write JPEG File.vi is used from picture palete. i haven't any password for it.

 

0 Kudos
Message 7 of 12
(3,830 Views)

Hi poorabedi,

 

I've been playing around with you VI a lot and I think the problem is that the ActiveX Container class Invoke Node just isn't meant to be used to capture video screen shots. The method options of the Invoke Node don't change depending on what is inside the container, so I would imagine that the Get Image method is designed for the Picture Box and possibly other controls but not for video capture. However in my searching for answers I did stumble across a free image toolkit that uses different methods to capture the front panel screen. I can't guarantee it will work for your application since it isn't an official NI supported product, but you can download it from the website below and try it out to see if it provides what you are looking for.

 

http://www.vi-lib.com/

 

Regards,

Peter W.

0 Kudos
Message 8 of 12
(3,816 Views)

hi Peter

i saw your link. it's looklike visin toolkit in labview.

i try to use it but it's not suitable for Windows Media Player.

i need save picture from Windows Media Player.

 

any idea ?

 

with regard

0 Kudos
Message 9 of 12
(3,796 Views)

Hi poorabedi,

 

The only way I can capture the image of WMP is by actually using the print screen function, and even then it's the whole screen not just the video. You can make calls into the windows .DLLs to do this programmatically but that is a rather intensive thing to try. There are a few examples of this on www.ni.com/examples/ if you search for "keyboard functions" that you could adapt to cause a print screen, however I'm not 100% confident that even that will work.

 

Regards,

Peter W.

0 Kudos
Message 10 of 12
(3,769 Views)