zhao Posted August 5, 2007 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
Gif Posted August 5, 2007 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
DaleHohm Posted August 5, 2007 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, 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
zhao Posted August 5, 2007 Author 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
Gif Posted August 5, 2007 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()
Gif Posted August 5, 2007 Posted August 5, 2007 your url is a local url so its not inetget(), but the url i shoed you is the same image
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now