Jump to content

Recommended Posts

Posted

Hello i have that function:

Func atak()
    Global $oFrame = _IEFrameGetCollection($oIE, 1)
    Global $tagas = _IETagNameGetCollection($oFrame,"a")
    For $taga In $tagas
        If @error Then
            Sleep(2500)
        Else
            If StringInStr($taga.id,"npvpattack_") Then
                _IEAction($taga,"click")
                Sleep(Round(Random(100, 165), 2))
            EndIf
        EndIf
    Next
EndFunc

 

So how to check in "For" loop - if element not exist > sleep Else > your code.

Element which i need to check if not exist is "$tagas".

  • Jos locked this topic
Guest
This topic is now closed to further replies.
×
×
  • Create New...