http://qs1969.pair.com?node_id=158113


in reply to How to capture screen under Win32?

Win32::GUI to the rescue.
  1. 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.
  2. 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