helraizer Posted November 22, 2007 Share Posted November 22, 2007 Hi folks and folksesses, In the GD2 library there is a function called 'imagegrabscreen()' and 'imagegrabwindow()', which captures a screen dump of the current window, or another one specified by the code. The only problem is that it launches the function as soon as the page is loaded, which means the target page, which is being grabbed hasn't actually loaded at the time of the screen grab. So all you are left with is an image of a blank page. Which renders it slightly pointless. Is there any way you can get the code to sleep until the screen/window (to be grabbed) has loaded, so it actually contains the content? Thanks, Sam Quote Link to comment Share on other sites More sharing options...
DJTim666 Posted November 22, 2007 Share Posted November 22, 2007 sleep(); ? Quote Link to comment Share on other sites More sharing options...
helraizer Posted November 22, 2007 Author Share Posted November 22, 2007 sleep(); ? Hmmm. Touché I'll try it. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.