Jump to content

Script hangs up on while loop


Go to solution Solved by Aequitas,

Recommended Posts

  • Solution

Thank you JohnOne. I used your idea of enumerating the links and used that to exitloop

Func _FixOfficeID()
    $pop = 12
    Local $oLinks = _IELinkGetCollection($oIE)
    Local $iNumLinks = @extended - 13
    While 3
        $iNumLinks = $iNumLinks - 1
        $pop += 1
        _IELinkClickByIndex($oIE, $pop)
        If $iNumLinks = 1 Then
            ExitLoop
        EndIf
        Sleep(500)
        _IEAction($oIE, "back")
        Sleep(200)
    WEnd
EndFunc   ;==>_FixOfficeID
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...