gte Posted January 12, 2010 Share Posted January 12, 2010 It saves it as a 1kb blank file, as if it was capturing just a white page, and the 1kb blank file won't open? Not sure what I'm doing wrong here? It does however work in the example in the help file, with the guicreate function? #Include <ScreenCapture.au3> #Include <IE.au3> $todaysdate = "" & @mon & "-" & @mday & "-" & @YEAR $ietext =_IECreate("http://www.google.com") _IELoadWait($ietext) _ScreenCapture_CaptureWnd("c:\temp\saved_" & $todaysdate & ".jpg", "Google - Windows Internet Explorer") HP OpenView ServiceCenter keep alive scriptRemote Desktop Login Script Link to comment Share on other sites More sharing options...
gte Posted January 12, 2010 Author Share Posted January 12, 2010 Is my handle wrong? HP OpenView ServiceCenter keep alive scriptRemote Desktop Login Script Link to comment Share on other sites More sharing options...
gte Posted January 12, 2010 Author Share Posted January 12, 2010 ***Tail between legs*** Figured it out myself, sorry I wasted some bandwidth here ... where do I make donations I needed a handle, and not window title, the correct text in case this comes up in a search is #Include <ScreenCapture.au3> #Include <IE.au3> $todaysdate = "" & @mon & "-" & @mday & "-" & @YEAR $ietext =_IECreate("http://www.google.com") _IELoadWait($ietext) $whandle = WinGetHandle("Google - Windows Internet Explorer") ConsoleWrite("Handle = " & $whandle & @CRLF) _ScreenCapture_CaptureWnd("c:\temp\saved_" & $todaysdate & ".jpg", $whandle) HP OpenView ServiceCenter keep alive scriptRemote Desktop Login Script Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now