note 102098 deleted from function.imagegrabwindow by danbrown
| From: | danbrown@php.net | Date: | Thu, 27 Jan 2011 01:53:30 +0000 |
| Subject: | note 102098 deleted from function.imagegrabwindow by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-176371@lists.php.net to get a copy of this message | ||
Note Submitter: Awod Hilaby
----
it's work perfect on windows 7 and it's make generate by it self i use this code ..
so randomly work .. but make a folder name "images"
<?php
$browser = new COM("InternetExplorer.Application");
$handle = $browser->HWND;
$browser->Visible = true;
$browser->Fullscreen = true;
$browser->Navigate("http://www.facebook.com");
/* Still working? */
while ($browser->Busy) {
com_message_pump(4000);
}
$im = imagegrabwindow($handle, 0);
$browser->Quit();
imagepng($im, "images/".time().".png");
imagedestroy($im);
?>