Jump to content

Getting Image Information.


Drath
 Share

Recommended Posts

Here's something I believe Dale wrote (and I edited a little) to get images off a website. It contains the info you need.

#include <IE.au3>

$sImgDir = FileSelectFolder ("Folder to download to", @DesktopDir, 7, "C:\Program Files"); Please make certain this folder already exists (silent failure if not)
$sWebPage = InputBox ("Webpage?", "Webpage with images to download"); webpage with images

$oIE = _IECreate()
_IENavigate($oIE, $sWebPage)
$oIMGs = _IETagNameGetCollection($oIE.document, "img")

; 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
Link to comment
Share on other sites

Hmmm would it be possible if I could bypass physically downloading them? I wish that you could just hover over the image with the window information program and get all the properties and the nice little variables that come with them.

I think what I am going to do is right click the image, copy the url address and then compare the clipboard information.

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...