Is there any way to use imagegrabwindow() with Firefox or Chrome?
Posted
by patternsofchaos
on Stack Overflow
See other posts from Stack Overflow
or by patternsofchaos
Published on 2010-06-02T20:20:15Z
Indexed on
2010/06/02
20:24 UTC
Read the original article
Hit count: 164
I'm trying to generate website thumbnails programatically in PHP. To do this, I'm using imagegrabwindow() with a COM object:
$browser = new COM("InternetExplorer.Application");
$handle = $browser->HWND;
$browser->Visible = true;
$browser->Navigate($pre.$URL);
while ($browser->Busy)
{
com_message_pump(4000);
}
$img = imagegrabwindow($handle);
What I'm wondering is if there is any way to do the same thing with Firefox or Chrome? Can I invoke either of them with PHP COM?
© Stack Overflow or respective owner