Capture a window in PHP
Description
The following code shows how to capture a window.
Example
<?php//from w w w. jav a2 s . c om
$browser = new COM("InternetExplorer.Application");
$handle = $browser->HWND;
$browser->Visible = true;
$im = imagegrabwindow($handle);
$browser->Quit();
imagepng($im, "test.png");
imagedestroy($im);
?>