Posted by:
Lamonte
(---.dsl.stlsmo.sbcglobal.net)
astm Wrote:
-------------------------------------------------------
> hello guys
>
> i want to ask about the functions imagegrabscreen
> & imagegrabwindow
>
> when i try to used these functions with wamp2.0i
> it gave me black screen
>
> my code is
>
> $im = imagegrabscreen();
> $browser = new COM("InternetExplorer.Application"
> );
> $handle = $browser->HWND;
> $browser->Visible = true;
> $browser->Navigate("[
www.google.com"]; );
> while ($browser->Busy) {
> com_message_pump(4000);
> }
> $im = imagegrabwindow($handle, 0);
> $browser->Quit();
> imagepng($im, "iesnap.png" );
>
>
> the code result was black image iesnap.png
>
> so i want to know if there is some steps i can do
> in wamp2.0i to open the GD library
[
php.oregonstate.edu]
User Contributed Notes
imagegrabscreen
andrew at local dot co dot nz
18-Apr-2008 11:02
For this to work your Apache service must be set to 'Allow service to interact with desktop' otherwise you will just get a blank image. To fix this right-click My Computer, select Manage/Services and Applications/Services - find the apache service (like Apache2) and right-click, select Properties - choose the Log on tab and check the 'Allow service to interact with desktop' checkbox. Restart Apache.