zhao 0 Posted August 5, 2007 (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 August 5, 2007 by zhao Share this post Link to post Share on other sites
Gif 2 Posted August 5, 2007 (edited) dont use IE use this:INetGet('http://www.autoitscript.com/images/autoit_6_240x100.jpg', @DesktopDir &'\AutoIt Logo.jpg') Exit Edited August 5, 2007 by Gif Share this post Link to post Share on other sites
DaleHohm 65 Posted August 5, 2007 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, curlMSDN docs: InternetExplorer Object, Document Object, Overviews and Tutorials, DHTML Objects, DHTML Events, WinHttpRequest, XmlHttpRequest, Cross-Frame Scripting, Office object modelAutomate input type=file (Related)Alternative to _IECreateEmbedded? better: _IECreatePseudoEmbedded Better Better?IE.au3 issues with Vista - WorkaroundsSciTe 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
zhao 0 Posted August 5, 2007 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
Gif 2 Posted August 5, 2007 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.Dalenice, 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
Gif 2 Posted August 5, 2007 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