Sign in to follow this  
Followers 0
Drath

Getting Image Information.

6 posts in this topic

Luckily this program uses a browser module for displaying images I want to get information from. Is it possible to get the image address using AutoIt? I couldn't see any commands on quick glance.


Share this post


Link to post
Share on other sites



Basically I want to get the image url adress from an image in a browser. I don't think the UDF: ImageGetInfo has this ability.


Share this post


Link to post
Share on other sites

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

Share this post


Link to post
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.


Share this post


Link to post
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
Sign in to follow this  
Followers 0