Log in

View Full Version : Please Help!!!!!!!! ITS URGANT!!!!!!!!



ronny.m.p
02-04-2007, 04:38 AM
Ok so im just scripting away until i turn around and test one of my scripts. It was going perfect until it came to a simple findcolortolerance procedure. I will post errors below. Anyways i then tried a few other scripts and even if they used to work they won't now!!! I haven't changed anything. It seems to go to the xs,ys coords. No matter what i set them to it just goes to em. If anyone has an explination please post ASAP!!!!

ERROR:

if(Findcolortolerance(x,y,StairColor,0,0,560,784)= true)then
mouse(x,y,0,0,true);

I Karma I
02-04-2007, 04:45 AM
That can't be the error, its part of the script. Post what it says in the debug box.

tarajunky
02-04-2007, 04:59 AM
That FindColorTolerance procedure is missing a value. You need a number for the tolerance at the end.



Findcolortolerance(x,y,StairColor,0,0,560,784)

would change to something like


Findcolortolerance(x,y,StairColor,0,0,560,784,10)

ronny.m.p
02-04-2007, 05:00 AM
Sorry i didn't post it right...it has tollerance...500 of it lol...Anyways when i run this it happens...

program New;
{.include SRL/SRL.scar}
const
StairColor=76387;


begin
SetupSRL;
ActivateClient;
MakeCompass('E');
if(findcolortolerance(x,y,StairColor,0,0,75,495,50 0)=true)then
Mouse(x,y,0,0,true);
end.

tarajunky
02-04-2007, 05:45 AM
works fine for me

WT-Fakawi
02-04-2007, 12:24 PM
Tolerance is a Byte. Values above 255 are useless. Tolerance 255 is ANY color.

ronny.m.p
02-04-2007, 12:54 PM
Ok this is just weird...all my color procedures had over 255 but they still wored...but thanks wakawi that did the trick!