Sign in to follow this  
Followers 0
ajdicky

help!?

5 posts in this topic

#1 ·  Posted (edited)

How do i get this loop to repeat alot of times?

How do i get this loop to run/stop base on text in the webpage and skip to the next line?!

Example

$DWWESTLAND = _IEAttach("Westland")

$sMyString = "Lumber Mill"

$oLinks = _IELinkGetCollection($DWWESTLAND)

For $oLink in $oLinks

$sLinkText = _IEPropertyGet($oLink, "innerText")

If StringInStr($sLinkText, $sMyString) Then

_IEAction($oLink, "click")

ExitLoop

EndIf

Next

Edited by ajdicky

Share this post


Link to post
Share on other sites



We really don't need the bold and big letters, I belive we can read just fine.

While 1

WEnd

Is a endless loop.

Share this post


Link to post
Share on other sites

Ditch the giant letters before a mod comes through and closes your thread. Also there is no such thing as a PHP link, links are HTML code.

Share this post


Link to post
Share on other sites

Alrite thx and sorry~

Share this post


Link to post
Share on other sites

How do i get this loop to run/stop base on text in the webpage and skip to the next line?!

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