Marrot Posted June 8, 2016 Share Posted June 8, 2016 Hello, i want to download an image from a website but i can't reload the img src as than it is another image. #include <IE.au3> #include <WinAPIFiles.au3> Local $oIE = _IECreate("https://www.website.com") Local $oImg = _IEImgGetCollection($oIE, 0) Local $sFilePath = _WinAPI_GetTempFileName("C:\TEMP") Local $iBytesSize = InetGet($oImg.src, $sFilePath) _IEQuit($oIE) This downloads the file but as it opens the img src new, i get another image, not, what is displayed in the browser. How can i download the exact image, that is displayed on my website? Something like right click "Save image" but without mouse interaction. (The img has an id if that helps.) Thanks for any help. Link to comment Share on other sites More sharing options...
Danp2 Posted June 8, 2016 Share Posted June 8, 2016 Can you explain how you intend to use the downloaded image? Latest Webdriver UDF Release Webdriver Wiki FAQs Link to comment Share on other sites More sharing options...
Marrot Posted June 8, 2016 Author Share Posted June 8, 2016 18 minutes ago, Danp2 said: Can you explain how you intend to use the downloaded image? I just want to download it to my hard drive Link to comment Share on other sites More sharing options...
AutoBert Posted June 8, 2016 Share Posted June 8, 2016 I think it's best practice of Websitedesigner to change the captcha for each session. Danp2 1 Link to comment Share on other sites More sharing options...
Danp2 Posted June 8, 2016 Share Posted June 8, 2016 1 hour ago, Marrot said: I just want to download it to my hard drive Nice job at avoiding the question. 57 minutes ago, AutoBert said: I think it's best practice of Websitedesigner to change the captcha for each session. ^This! Latest Webdriver UDF Release Webdriver Wiki FAQs Link to comment Share on other sites More sharing options...
Marrot Posted June 8, 2016 Author Share Posted June 8, 2016 Solved it Link to comment Share on other sites More sharing options...
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