in reply to How to capture screen under Win32?
Win32::GUI to the rescue.
- Find out the DC (device context). You can use Win32::GUI or perhaps something like Win32::ActAcc. Note: If you can find out the hwind (window handler), you can get the DC.
- Grab it with Win32::GUI::DIBitmap (check out the newFromDC method).
I don't think you can put images in the clipboard with Win32::Clipboard, only text.
/J
In Section
Seekers of Perl Wisdom