ajdicky Posted March 27, 2008 Share Posted March 27, 2008 (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 EndIfNext Edited March 27, 2008 by ajdicky Link to comment Share on other sites More sharing options...
Swift Posted March 27, 2008 Share Posted March 27, 2008 We really don't need the bold and big letters, I belive we can read just fine. While 1 WEnd Is a endless loop. Link to comment Share on other sites More sharing options...
weaponx Posted March 27, 2008 Share Posted March 27, 2008 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. Link to comment Share on other sites More sharing options...
ajdicky Posted March 27, 2008 Author Share Posted March 27, 2008 Alrite thx and sorry~ Link to comment Share on other sites More sharing options...
ajdicky Posted March 27, 2008 Author Share Posted March 27, 2008 How do i get this loop to run/stop base on text in the webpage and skip to the next line?! Link to comment Share on other sites More sharing options...
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