marc2333
2012-11-06 14:36:10
So here is what i want my script to do :
I want it to find the color 12345678 and then check if it finds more of the color 12345678 just arround the first place it found the color. This way, if my script find a single pixel and can't find more pixel of this color in a short range, it will skip it and look somewhere else.
I taught about this :
if FindColor(X, Y, 12345678, 0, 0, 500, 500) then
if FindColor(X, Y, 12345678, X-10, Y-10, X+10, Y+10) then
begin
bla bla bla
end;
^ this would only check for 1 other pixel and i would need to repeat it like 10 times for example if i want to check if there is 10 pixels of the same color around the first it found.
My question :
Is there a way to do it much more simple ? (pretty sure there is one but can,t find what).
And is there a way i could script it so if it can't find enough pixel of the same color around the first pixel, then it go to an other one and not keep going on the same ?
Thanks, i hope i was clear =/
I want it to find the color 12345678 and then check if it finds more of the color 12345678 just arround the first place it found the color. This way, if my script find a single pixel and can't find more pixel of this color in a short range, it will skip it and look somewhere else.
I taught about this :
if FindColor(X, Y, 12345678, 0, 0, 500, 500) then
if FindColor(X, Y, 12345678, X-10, Y-10, X+10, Y+10) then
begin
bla bla bla
end;
^ this would only check for 1 other pixel and i would need to repeat it like 10 times for example if i want to check if there is 10 pixels of the same color around the first it found.
My question :
Is there a way to do it much more simple ? (pretty sure there is one but can,t find what).
And is there a way i could script it so if it can't find enough pixel of the same color around the first pixel, then it go to an other one and not keep going on the same ?
Thanks, i hope i was clear =/