Jump to content

Recommended Posts

Posted (edited)

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

  • 1 year later...
Posted

#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.

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
  • Recently Browsing   0 members

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