RSS

Capture webThumb by COM

14 Apr

<?php
$browser = new COM(“InternetExplorer.Application”);
$handle = $browser->HWND;

//bring it to front
$browser->Visible = true;

$browser->ToolBar = false;
$browser->MenuBar = false;
///$browser->Title = “sandeep”;

/*$browser->Height = “2024”;
$browser->Width = “768”;*/
//$browser->TitleChange = “sandeep verma”;
//echo $handle.” sandeep “;

$browser->Navigate(“https://sandeepverma.wordpress.com&#8221;);

/* Still working? */
while ($browser->Busy) {
com_message_pump(4000);
}
$im = imagegrabwindow($handle, 0);

//$browser->GoSearch();

$browser->Quit();
imagepng($im, “iethumb.png”);

?>

<img src=”iethumb” height=”369″ width=”512″ />

Advertisements
 
Leave a comment

Posted by on April 14, 2008 in Uncategorized

 

Tags:

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

 
%d bloggers like this: