Kaorichan Posted January 30, 2016 Posted January 30, 2016 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".
alienclone Posted January 30, 2016 Posted January 30, 2016 maybe try do "for" loop until NOT @error If @error Then MsgBox(262192, "", @ComputerName & " slaps " & @UserName & " around a bit with a large trout!") EndIf "Yeah yeah yeah patience, how long will that take?" -Ed Gruberman REAL search results | SciTE4AutoIt3 Editor Full Version
Developers Jos Posted January 30, 2016 Developers Posted January 30, 2016 As indicated in the other closed thread: Please read our forum rules before continuing in our forums. Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
Recommended Posts