Code:
$checksum = PixelChecksum(0,0, 50,50)
While 1
[COLOR="Red"]If[/COLOR] ControlGetText ("SBot v1.10a (C)2008,2009 by bot-cave.net", "", "Static9") = "Connecting" or "Connected" Then
[COLOR="Red"]If[/COLOR] not ControlGetText ("SBot v1.10a (C)2008,2009 by bot-cave.net", "", "Static11") = "Login error" Then
If $checksum = PixelChecksum(0,0, 50,50) Then
Else
Sleep(5000)
EndIf
[COLOR="Red"]Else[/COLOR]
ShellExecute($LoginScriptPath & "\" & $LoginScript, $LoginScriptPath)
Sleep(1000)
Exit
EndIf
[COLOR="Red"]Else[/COLOR]
WinClose( "SBot v1.10a (C)2008,2009 by bot-cave.net")
ShellExecute($LoginScriptPath & "\" & $LoginScript, $LoginScriptPath)
Sleep(1000)
Exit
EndIf
WEnd
My problem is, that he always goes to the Else even if the Condition isn't true(red points). Please do not post if you dont have any knowledge about this.