resource imagegrabwindow ( int $window_handle [, int $client_area = 0 ] )
Captures a window
Grabs a window or its client area using a windows handle (HWND property in COM instance)
<?php
$browser = new COM("InternetExplorer.Application");
$handle = $browser->HWND;
$browser->Visible = true;
$im = imagegrabwindow($handle);
$browser->Quit();
imagepng($im, "iesnap.png");
imagedestroy($im);
?>
0 Comment:
Post a Comment