BruceCopperField Posted December 21, 2009 Share Posted December 21, 2009 I need to capture some screen in IE whose coordinates are first derived by DOM's offsetTop/offsetLeft. That means I starts with coordinates relative to the content/viewable area of IE which is the "Internet Explorer_Server1" control and need to convert them to whatever _screen_capture...() expects. I've done some tests and found that _ScreenCapture_CaptureWnd() is expecting a coordinate relative to the active window. But I have trouble converting the coordinates to this final form. By adding ControlGetPos()'s return value, I am able to convert my first coordinates to relative to the client area of IE. But what should I do to proceed to the window coordinate? Link to comment Share on other sites More sharing options...
Mat Posted December 21, 2009 Share Posted December 21, 2009 #include <ScreenCapture.au3> $sFile = @ScriptDir & "\test.png" WinActivate ("[CLASS:IEFrame]") _ScreenCapture_CaptureWnd ($sFile, ControlGetHandle ("[CLASS:IEFrame]", "", "[CLASS:Internet Explorer_Server; INSTANCE:1]")) ClipPut ($sFile) What you must remember is that a control is just a child window. Mat AutoIt Project Listing 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