Sign in to follow this  
Followers 0
zhao

How to copy images from a Webbrowser Object?

6 posts in this topic

#1 ·  Posted (edited)

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

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

dont use IE use this:

INetGet('http://www.autoitscript.com/images/autoit_6_240x100.jpg', @DesktopDir &'\AutoIt Logo.jpg')
Exit
Edited by Gif

Share this post


Link to post
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

Share this post


Link to post
Share on other sites

the url i got was "mk:@MSITStore:C:\Program%20Files\AutoIt3\AutoIt.chm::/html/images/autoit_6_240x100.jpg" ,and inetget didn't work in this case


Share this post


Link to post
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()

Share this post


Link to post
Share on other sites

your url is a local url so its not inetget(), but the url i shoed you is the same image

Share this post


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
Sign in to follow this  
Followers 0