Jump to content

IE UDFs - Save image from a html page


Recommended Posts

When a browser window is opened doesn't windows store the data in a temp directory? Couldn't you just get the name of the picture and copy it to a new location to call from your script from that temp directory?

Edited by computergroove

Get Scite to add a popup when you use a 3rd party UDF -> http://www.autoitscript.com/autoit3/scite/docs/SciTE4AutoIt3/user-calltip-manager.html

Link to comment
Share on other sites

  • 1 year later...

#include <ScreenCapture.au3>

#include <IE.au3>
 

Func _saveIEObjImg2File($ieObj, $filename)
    $ox = _IEPropertyGet( $ieObj, "screenx");
    $oy = _IEPropertyGet( $ieObj, "screeny");
    $oWidth = _IEPropertyGet( $ieObj, "width");
    $oHeight = _IEPropertyGet( $ieObj, "Height");
    
;    MsgBox( 0, 'x at', $ox)
;    MsgBox( 0, 'y at', $oy)
;    MsgBox( 0, 'w =', $oWidth)
;    MsgBox( 0, 'h =', $oHeight)
    
    ; Capture region
    _ScreenCapture_Capture($filename, $ox , $oy, $ox+$oWidth, $oy+$oHeight)
EndFunc
 

hi, the function worked very well in my computer whatever IE is in Fullscreen or not.

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...