function FindColorTolerance(out x, y: : Integer; col, x1, y1, x2, y2, tol: : Integer): Boolean;
FindColorTolerance returns true if a colour within the given tolerance range (tol) of the given color (col) is found in the box defined by x1, y1, x2, y2. Only the first point is returned in x and y. Whether or not a color is within the tolerance range is determined by the CTS mode. It searches from the top left to the bottom right and will stop after matching a point.