Jump to content

Recommended Posts

I am attempting to capture a webpage via screenshot, however the script seems to end right when it gets to the _main() function. I'm sure my code is laughable because coding is not my thing but I need to have this done. I need something that will take a screenshot of a specific webpage after the page finishes loading. I have all the code down except for capturing part. Please help.

This is what I have so far, some of it was taken from the help file, but obvious I don’t understand enough about functions.


#include <screencapture.au3>

Func _Main()

Local $hGUI

$hGUI = WinGetHandle("UnitedHealthcare Online - Windows Internet Explorer", "")

_ScreenCapture_CaptureWnd("C:\Users\Owner\Pictures\Temp\" & $i & ".png", $hGUI)


No problem can withstand the assault of sustained thinking.Voltaire


Link to post
Share on other sites

here there is a example: maybe is that you want

#include <ScreenCapture.au3>
Global $handle = WinGetHandle("[CLASS:IEFrame]", "")
WinActivate("[CLASS:IEFrame]", "")
If @error Then
    MsgBox(4096, "Error", "Could not find the correct window")
_ScreenCapture_CaptureWnd(@MyDocumentsDir & "GDIPlus_Image.jpg",$handle)
Link to post
Share on other sites

msgbox(0,"",$handle) only show the handle. delete it if you want.

You're welcome.

Edited by Danyfirex
Link to post
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
  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...