This script demonstrate how to save the web page, or just the specified element to an image file. Two COM interface were used in the script (IViewObject2 for entire page, and IHTMLElementRender for an element) Some code was modified from IECapt. This script needs (Thanks to trancexx, she help me to solve a problem.) #Include <IE.au3>
#Include <WinAPI.au3>
#Include <ScreenCapture.au3>
#Include <WindowsConstants.au3>
#Include "AutoItObject.au3"
_AutoItObject_StartUp()
Here's an update from my side:
; https://www.autoitscript.com/forum/topic/124002-web-screenshot/?do=findComment&comment=1043557
#include <IE.au3>
#include <WinAPI.au3>
#include <ScreenCapture.au3>
#include <WindowsConstants.au3>
_WebCaptureTest("https://funk.eu", "funk.eu.png")
ShellExecute(@ScriptDir & "\funk.eu.png")
Func _WebCaptureTest($Url, $ImageName)
Local $hBmp = _WebCapture($Url,