
Originally Posted by
0wn 4 skill
Hey. Ive got this lil function and it finds the bitmaps and says whether it has, but it wont click I have no idea why not...
SCAR Code:
If FindBitmapToleranceIn(ClickEnter, x, y,202,323,572,372, 10) then
Writeln(SuccesfulLogin)
else
Writeln(UnSuccesfulLogin);
UnloadBitmap;
TerminateScript;
begin
Mouse(x,y,3,4,True);
Wait(1000+Random(500));
You are telling SCAR, that if it finds the bitmap then to say its Successfull, but you are not telling it to click. The way your code is now, your telling SCAR to click if it doesn't find the Bitmap.
FIXED:
SCAR Code:
If FindBitmapToleranceIn(ClickEnter, x, y, 202, 323, 572, 372, 10) Then
Begin // IF IT FINDS BITMAP, IT WILL DO THIS
Writeln(SuccesfulLogin);
Wait(1000+Random(500));
Mouse(x,y,3,4,True);
Wait(1000+Random(500));
End Else
Begin // IF IT DOESNT FIND BITMAP, IT WILL DO THIS
Writeln(UnSuccesfulLogin);
UnloadBitmap;
TerminateScript;
End;