$img = imagegrabscreen(); imagepng($img, 'screenshot.png');
$browser = new COM("InternetExplorer.Application"); $handle = $browser->HWND; $browser->Visible = true; $browser->Navigate("http://www.libgd.org"); /* Still working? */ while ($browser->Busy) { com_message_pump(4000); } $im = imagegrabwindow($handle, 0); $browser->Quit(); imagepng($im, "iesnap.png"); imagedestroy($im);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)