who said grasping the map can only use QQ, with the print screen, PHP can do, this article mainly introduces the PHP capture function to achieve screen shot method
Code as follows: <?php * screenshot $im = Imagegrabscreen (); Imagepng ($im, "myscreenshot.png"); * Grab a window (ie for example) $browser = new COM ("Internetexplorer.application"); $handle = $browser->hwnd; $browser->visible = true; $im = Imagegrabwindow ($handle); $browser->quit (); Imagepng ($im, "iesnap.png"); $im = Imagegrabscreen (); //Capture IE window and window content (ie for example) $browser = new COM ("Internetexplorer.application"); $handle = $browser->hwnd; $browser->visible = true; $browser->navigate ("http://www.jb51.net"); /* Still working? */while ($browser->busy) {com_message_pump (4000);} $im = Imagegrabwindow ($handle, 0); $browser->quit (); Imagepng ($im, "iesnap.png"); //ie full-screen mode $browser = new COM ("Internetexplorer.application"); $handle = $browser->hwnd; $browser->visible = true; $browser->fullscreen = true; $browser->navigate ("Http://www.jb51.nett"); * Is it completely loaded? (Be aware of frames!) */while ($browseR->busy) {com_message_pump (4000);} $im = Imagegrabwindow ($handle, 0); $browser->quit (); Imagepng ($im, "iesnap.png");?> need to explain a few 1. These two methods can only work under Windows, 2. Black Screen Solution--->>web server (IIS or Apache) as a Windows service, you must turn on the "Allow Desktop interaction" option. (Click on the service attribute-> login-> "Allow interaction with desktop".) (Be sure to remember to restart Apache or other servers to be useful, I have succeeded, no doubt) 3. Need GB library version for 2.0.34 (php5.2.2 default with)