hammy Posted December 1, 2006 Posted December 1, 2006 (edited) I am exploring AutoIT for use with Tivoli Monitoring. I need to analyze the pages images and confirm that they have not changed. I have thought of a few ways to do this but I was hoping someone might have a suggested solution. Right now I am trying to figure out how to find the image file in cache or download it to a known directory. Then I can compare it to a locally stored copy. Edited December 1, 2006 by hammy
hammy Posted December 2, 2006 Author Posted December 2, 2006 Ok I found this code in the IE.au3 thread#include <IE.au3> $sImgDir = "c:\foo\"; Please make certain this folder already exists (silent failure if not) $sWebPage = "http://www.autoitscript.com/forum/index.php?"; 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) NextIE.au3 ThreadNow I just need to figure out how to call the DOS comp command or call a commandline diff program.
Thatsgreat2345 Posted December 2, 2006 Posted December 2, 2006 by different i dont understand what you want to find out thats different i guess a fileread
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