Medic873 Posted March 22, 2010 Share Posted March 22, 2010 Im using this now and think i might finally have this problem solved #include <IE.au3> $oIE = _IECreate ("http://www.autoitscript.com/") $oImgs = _IEImgGetCollection ($oIE) $iNumImg = @extended MsgBox(0, "Img Info", "There are " & $iNumImg & " images on the page") For $oImg In $oImgs MsgBox(0, "Img Info", "src=" & $oImg.src) now all i need to know is how to get ride of the message box and make it so the 4th image url is assigned to $Image how do i do that. Link to comment Share on other sites More sharing options...
furrycow Posted March 22, 2010 Share Posted March 22, 2010 (edited) From helpfile: #include <IE.au3> $oIE = _IECreate ("http://www.autoitscript.com/") $oImg = _IEImgGetCollection ($oIE, 3);This is 0-based so ($oIE,3) is the 4th image. $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, "4th Image Info", $sInfo) Edited March 22, 2010 by furrycow Instant Lockerz Invite - www.instantlockerzinvite.co.uk 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