I started learning Simba/Lape just yesterday. For my first target I decided to just do a simply facebook game through chrome. Everything was working fine, but during the learning process I learned that you had to attach to the client for more consistency.
After attaching the client and updating X/Y values it will not find any colors.
I made a separate code to test if it was something in my original script or just attaching to the chrome window messed up the codes functions:
Code:
program WHYWONTYOUFINDMYCOLORSTUPIDGAME;
var
X, Y: Integer
Procedure ColorFind;
var
x, y: Integer
begin
writeLn('Looking for color.');
If FindColorTolerance(x, y, 16744512, 200, 900, 550, 970, 100) then
writeLn('Found Blue Color');
If FindColorTolerance(x, y, 16744512, 200, 900, 550, 970, 100) = false then
writeLn('No color found.')
If FindColorTolerance(x, y, 16777215, 110, 740, 630, 965, 100) then
writeLn('Found White Color.')
If FindColorTolerance(x, y, 15795916, 118, 47, 235, 61, 100) then
writeLn('Found White Color.')
end
begin
ColorFind;
end.
I get the read out
Compiled successfully in 312 ms.
Looking for color.
No color found.
Successfully executed.
It's simply attaching to the window. I had a friend test this same script and it works just fine on his Simba. What could be causing this issue on my side?