Jump to content

Com("internetexplorer.application");


jean_quaresma

Recommended Posts

Good Morning

 

I'm tranbalhando with COM ("InternetExplorer.Application") to capture the screen in IE browser, the code works perfectly when the computer is not with the screen locked.

 

When locking the computer screen but it captures the screen is all black.

 

Below is the source code in PHP:

 

$url = 'www.google.com';

$browser = new COM("InternetExplorer.Application");
$handle = $browser->HWND;
$browser->Visible = true;
$browser->Fullscreen = true;
$browser->Navigate($url);

while ($browser->Busy) {
com_message_pump(4000);
}
sleep(10);

$im = imagegrabwindow($handle);//close down Internet Explorer
$browser->Quit();

 

thank you

Link to comment
https://forums.phpfreaks.com/topic/271338-cominternetexplorerapplication/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.