Sign in to follow this  
Followers 0
mary

_IEAttach loop

2 posts in this topic

#1 ·  Posted (edited)

I'm using the great IE UDF but i'm not sure if _IEAttach is the better solution to loop until a substring exists in html.

so i'm asking if the is better idea that my loop?

Here is my code

#include <IE.au3>

   
 While 1
    Sleep(1000)
    
    if StringInStr(WinGetTitle("[ACTIVE]"),"sport") Then
    
      $oIE = _IEAttach("<span class="titre_ref2">", "html")
      If @error = $_IEStatus_NoMatch Then ExitLoop
      
      myfunction($oIE)
   EndIf
    
WEnd

Thanks

Edited by mary

Share this post


Link to post
Share on other sites



$oIE = _IEAttach("<span class="titre_ref2">", "html")
 
Should be changed to
 

 $oIE = _IEAttach('<span class="titre_ref2">', "html")

 

I don't know about your question but I'm sure you'll get your answer very soon.

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