在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
1<?php
2 3//全屏 Screenshot 4$im = imagegrabscreen(); 5imagejpeg($im, "myscreenshot.jpg"); 6 7 8//窗口 Capture a window (IE for example) 9$browser = new COM("InternetExplorer.Application"); 10$handle = $browser->HWND; 11$browser->Visible = true; 12$im = imagegrabwindow($handle); 13$browser->Quit(); 14imagepng($im, "iesnap.png"); 15$im = imagegrabscreen(); 16 17 18// 窗口和其内容 Capture a window (IE for example) but with its content! 19 20$browser = new COM("InternetExplorer.Application"); 21$handle = $browser->HWND; 22$browser->Visible = true; 23$browser->Navigate("http://blog.rjsuzhou.com"); 24 25// Still working? 26while ($browser->Busy) { 27 com_message_pump(4000); 28} 29$im = imagegrabwindow($handle, 0); 30$browser->Quit(); 31imagepng($im, "iesnap.png"); 32 33 34//全屏IE in fullscreen mode 35 36$browser = new COM("InternetExplorer.Application"); 37$handle = $browser->HWND; 38 39$browser->Visible = true; 40$browser->FullScreen = true; 41$browser->Navigate("http://www.google.com"); 42 43// Is it completely loaded? (be aware of frames!) 44while ($browser->Busy) { 45 com_message_pump(4000); 46} 47$im = imagegrabwindow($handle, 0); 48$browser->Quit(); 49imagepng($im, "iesnap.png"); 50 51 52?> 53 http://blog.chinaunix.net/u/32889/showart_677028.html http://sourceforge.net/project/showfiles.php?group_id=149789&package_id=169528 |
2022-08-18
2022-07-18
2022-08-17
2022-08-17
2022-11-06
请发表评论