; _ErrorCheckLog - Make sure you reset your counter and logline every time Redvex is loaded! AO ; clears its logfile each time it starts from scratch. Counter should also be reset every NG Func _ErrorCheckLog($checkStr, ByRef $counter, $max) Local $logfile = FileOpen($aolog, 0) Local $linestr If $logfile = -1 Then MsgBox(4096, "Error", "Unable to locate the Awesom-O log.") _FileWriteLog(@ScriptDir & "\MixamAO.log", "ERROR: Unable to locate the Awesom-O log") Exit EndIf While 1 $linestr = FileReadLine($logfile, $logline) If @error = -1 Then If StringInStr($linestr, $checkStr) Then $counter += 1 EndIf $logline += 1 If $counter >= $max Then FileClose($logfile) return True EndIf Else ExitLoop EndIf WEnd FileClose($logfile) return False EndFunc