Sign in to follow this  
Followers 0
GiorgioDistribuzione88

_IEImgGetCollection - HELP

1 post in this topic

Good Morning
AutoIT Opens the website of IE , connect on the website and must check:
If the image loading , which in this case is called " preload.gif " And Still Present Then wait ; Otherwise if " preload.gif " has finished loading Then MouseClick .
As soon as I open the site and the image always present , AutoIT should intervene Only if the image of a stopped .

I adopted this script , you know help me?

 

 

*********************************************************************************

***************************************************************
#include <ie.au3>


HotKeySet("{F1}", "Terminate")

$oIE = _IECreate ("http://www.sitoacaso.it")
WinSetState("[ACTIVE]", "", @SW_MAXIMIZE)

$CercaImmagine = "preload.gif"
$ImmaginePresente = False

$oImgs = _IEImgGetCollection ($oIE)
For $oImg In $oImgs
If $oImg.src = $CercaImmagine Then
$ImmaginePresente = True
ExitLoop
EndIf
Next

If $ImmaginePresente = True Then
Sleep(500)
Else MouseClick(.....)
EndIf

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