views:

70

answers:

1

Hi,

i need to get Image of hidden IvideoWindow ("ActiveMovie Window"), which shows webcam preview. As far as i can tell preview isn't overlay, it doesn't have overlay features, i can use printscreen on it, but i need window to stay hidden all the time, so that won't help. Also PrintWindow() api function returns me black screen.

Programming languages: c#, c, c++, java, pascal.

Operating system: Windows XP.

Any ideas?

A: 

The trick is to show the window but outside the desktop. Set the left position at the desktop.width+1 (not screen.width, because users may have multiple screens) and then make it visible.

That way normal functions like printscreen work and users still won't see it.

Jan Derk