I've searched but I can't seem to find any documentation on this FindColorsTolerance function, but I keep seeing it used in scripts. Could someone explain it to me?
Also, what's the difference between a "procedure" and a function?
I've searched but I can't seem to find any documentation on this FindColorsTolerance function, but I keep seeing it used in scripts. Could someone explain it to me?
Also, what's the difference between a "procedure" and a function?
FindColorsTolerance returns the position of every color found within a tolerance in a TPoint Array
The difference between a procedure and a function is that a function returns a value. i.e.
SCAR Code:x := aFunction;
x := aProcedure; //this line would not work
~ Metagen
FindColorTolerance searches the selected client for the color you selected, with a slight tolerance of colors like it.
Example
SCAR Code:FindColorTolerance(x, y, 1679555, MSX1, MSY1, MSX2, MSY2, 5)
Function - coordinates - color - edges of screen - tolerance
This would look for the pinkish color of a raw chicken in the selected screen.
And the difference between a procedure and a function is this:
-A function is a piece of code which does an action / search and returns a value (Like FindColorTolerance)
-A procedure is a piece of code in your script, where you put a couple of functions after each other to do a number of actions.
Like if the function FindColorTolerance finds the color it is looking for, then click it.
Hope i helped
~SirPali
http://garrett92.freehostia.com/Scri...criptStats.png
ReFlax Flax Spinner - V4 Is Out -
Check it out!
Note the difference between
FindColorsTolerance
FindColorTolerance
~ Metagen
http://garrett92.freehostia.com/Scri...criptStats.png
ReFlax Flax Spinner - V4 Is Out -
Check it out!
The best way to contact me is by email, which you can find on my website: http://wizzup.org
I also get email notifications of private messages, though.
Simba (on Twitter | Group on Villavu | Website | Stable/Unstable releases
Documentation | Source | Simba Bug Tracker on Github and Villavu )
My (Blog | Website)
you use if then for functions because they would return true/false or another type of variable for example a function in srl.
if not(LoggedIn) then Exit;
There are currently 1 users browsing this thread. (0 members and 1 guests)