Jump to content

StringBetween not work in loop


Recommended Posts

For $xd=0 To 4 Step +1
     _FFOpenURL("http://mepage.pl/news")
         _FFLoadWait()
         $sText = _FFReadHtml()
$between = _StringBetween(StringReplace($sText, @CRLF, ''), '<a class="name" href="', '">')
 _ArrayDisplay($between)
    ;MsgBox(0, "text", $between[$xd])
_FFOpenURL("http://mepage.pl" & $between[24] )
Msgbox(0, "Me-PAGE", "OPEN YOUR NEW PADE"& $between[24])
  Sleep (2000)
Next

Not work 2 times(first times good make) (two times as make show me error)

first times = if-0

two times = if-1'

HELP :) THX

Edited by metis
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...