Jump to content

How to copy images from a Webbrowser Object?


zhao
 Share

Recommended Posts

I want to copy image from the browser,I tried to use _IEImgGetCollection,but i could only get the link address of the image,and I could not copy it out.

for example,if i want to copy the au3 logo in the autoit help file.what should i do?

here is what i get so far:

#include <IE.au3>

$oIE = _IEAttach ("AutoIt Help","Embedded")

$oImg = _IEImgGetCollection ($oIE, 0)
$sInfo = "Src: " & $oImg.src & @CR
$sInfo &= "FileName: " & $oImg.nameProp & @CR
$sInfo &= "Height: " & $oImg.height & @CR
$sInfo &= "Width: " & $oImg.width & @CR
$sInfo &= "Border: " & $oImg.border
MsgBox(0, "Image Info", $sInfo)
Edited by zhao
Link to comment
Share on other sites

See my sig to find the Snippet database... there is an example there os using a hybrid on IE.au3 and InetGet to accomplish this.

Dale

Free Internet Tools: DebugBar, AutoIt IE Builder, HTTP UDF, MODIV2, IE Developer Toolbar, IEDocMon, Fiddler, HTML Validator, WGet, curl

MSDN docs: InternetExplorer Object, Document Object, Overviews and Tutorials, DHTML Objects, DHTML Events, WinHttpRequest, XmlHttpRequest, Cross-Frame Scripting, Office object model

Automate input type=file (Related)

Alternative to _IECreateEmbedded? better: _IECreatePseudoEmbedded  Better Better?

IE.au3 issues with Vista - Workarounds

SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y

Doesn't work needs to be ripped out of the troubleshooting lexicon. It means that what you tried did not produce the results you expected. It begs the questions 1) what did you try?, 2) what did you expect? and 3) what happened instead?

Reproducer: a small (the smallest?) piece of stand-alone code that demonstrates your trouble

Link to comment
Share on other sites

See my sig to find the Snippet database... there is an example there os using a hybrid on IE.au3 and InetGet to accomplish this.

Dale

nice, with it you can save images without knowing the name... but yet if you know the image's name you can use INetGet()

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