Shiro Posted June 5, 2010 Posted June 5, 2010 hello i want to download some images from a website to @DesktopDir any idea?
MvGulik Posted June 6, 2010 Posted June 6, 2010 (edited) whatever Edited February 7, 2011 by MvGulik "Straight_and_Crooked_Thinking" : A "classic guide to ferreting out untruths, half-truths, and other distortions of facts in political and social discussions.""The Secrets of Quantum Physics" : New and excellent 2 part documentary on Quantum Physics by Jim Al-Khalili. (Dec 2014) "Believing what you know ain't so" ... Knock Knock ...
Shafayat Posted June 6, 2010 Posted June 6, 2010 Shiro, did you even install autoit? If you have then please search the help file. You cannot miss it. [Not using this account any more. Using "iShafayet" instead]
Shiro Posted June 6, 2010 Author Posted June 6, 2010 How about 'Right mouse click' on image and select 'Save image'. if i have to do it myself then what i am doing here?
Shiro Posted June 6, 2010 Author Posted June 6, 2010 Shiro, did you even install autoit? If you have then please search the help file. You cannot miss it.ka goi chaydo you really think i don't have autoit installed and i have 68 posts?
MvGulik Posted June 6, 2010 Posted June 6, 2010 (edited) whatever Edited February 7, 2011 by MvGulik "Straight_and_Crooked_Thinking" : A "classic guide to ferreting out untruths, half-truths, and other distortions of facts in political and social discussions.""The Secrets of Quantum Physics" : New and excellent 2 part documentary on Quantum Physics by Jim Al-Khalili. (Dec 2014) "Believing what you know ain't so" ... Knock Knock ...
Shiro Posted June 8, 2010 Author Posted June 8, 2010 can i have link to the udf for downloading all the images of a webpage?
DaleHohm Posted June 8, 2010 Posted June 8, 2010 There is code to do this in the Snippets Database (see my sig) 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
Shiro Posted June 9, 2010 Author Posted June 9, 2010 There is code to do this in the Snippets Database (see my sig) Dale but i want to do it in background / without visible windows. this snippest did not work as i want: #include <IE.au3> $sImgDir = "d:\pkf\"; Please make certain this folder already exists (silent failure if not) $sWebPage = "http://www.autoitscript.com/forum/index.php?"; webpage with images $oIE = _IECreate( $sWebPage) $oIMGs = _IEImgGetCollection ($oIE) ; Loop through all IMG tags and save file to local directory using INetGet For $oIMG in $oIMGs $sImgUrl = $oIMG.src $sImgFileName = $oIMG.nameProp INetGet($sImgUrl, $sImgDir & $sImgFileName) Next
Tec Posted June 9, 2010 Posted June 9, 2010 search the helpfile _IECreate and _IEQuit #include <IE.au3> _IECreate ( [$s_Url = "about:blank" [, $f_tryAttach = 0 [, $f_visible = 1 [, $f_wait = 1 [, $f_takeFocus = 1]]]]] ) _IEQuit ( ByRef $o_object )
Shiro Posted June 9, 2010 Author Posted June 9, 2010 you mean something like this? #include <IE.au3> $sImgDir = "d:\pkf\"; Please make certain this folder already exists (silent failure if not) $sWebPage = "http://www.autoitscript.com/forum/index.php?"; webpage with images $oIE = _IECreate ( [$s_Url = $sWebPage [, $f_tryAttach = 0 [, $f_visible = 1 [, $f_wait = 1 [, $f_takeFocus = 1]]]]] ) _IEQuit ( ByRef $o_object ) $oIMGs = _IEImgGetCollection ($oIE) ; Loop through all IMG tags and save file to local directory using INetGet For $oIMG in $oIMGs $sImgUrl = $oIMG.src $sImgFileName = $oIMG.nameProp INetGet($sImgUrl, $sImgDir & $sImgFileName) Next but it's not working...
Tec Posted June 9, 2010 Posted June 9, 2010 Test this small script Local $path = RegRead("HKLM\SOFTWARE\AutoIt v3\AutoIt", "InstallDir") ShellExecute("mk:@MSITStore:" & $path & "\UDFs3.chm::/html/libfunctions/_IECreate.htm")
DaleHohm Posted June 10, 2010 Posted June 10, 2010 (edited) but i want to do it in background / without visible windows.this snippest did not work as i want:Then set the visible flag in _IECreate to false and remember to use _IEQuit when you exit.Dale Edited June 10, 2010 by DaleHohm 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
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