Problem: Es findet nix. Toleranz ist schon ziemlich hoch... am Bild kanns also nich liegen... Ach ja, die MsgBox zeigts auch nich an.
Code:
$x1 = 0
$y1 = 0
Do
$result = _ImageSearch("login.bmp",1,ByRef $x1,ByRef $y1,100)
Until $result=1
If $result=1 Then
WinActivate("S4 Client")
Send(GUICtrlRead($input1) & "{TAB}" & GUICtrlRead($input2) & "{ENTER}")
ElseIf $result=0 Then
MsgBox(0, "Couldn't log in", "Couldn't log in")
EndIf