Avaphi
2007-01-31 00:32:31
Here it is, It is atm, untested, but imho, I think it will be hawt. Here it is:
Got any questions? Just ask :)
NOTES: You need to change the arguments of the function in the main loop(the hawtcolors and the strings) if you want to use it.
//**Find A Object**\\
program FindAObject;
{.include Srl\Srl.Scar}
function FindAObject(S1, S2, S3 : String; Colors:Array Of integer; Tolerance : integer): Boolean;
begin
var i : integer;
for (i:=0 to GetArrayLength(Colors)-1) do
begin
if FindColorSpiralTolerance(Ax, Ay, Colors[i], MSX1, MSY1, MSX2, MSY2, Tolerance) then
MMouse(Ax, Ay, 0, 0);
if IsUpTextMulti(S1, S2, S3) then
begin
writeln('We found the correct object ! Z0mg!');
Mouse(Ax, Ay, 0, 0, True);
end;
writeln('We got fux0rd, Someone contact Avaphi !');
end;
begin
SetupSrl;
If(FindAObject('Your', 'Strings', 'Here!', [color1,color2,color3,color4,color5], Tol))Then
begin
writeln('I found the object dood');
end;
end.Got any questions? Just ask :)
NOTES: You need to change the arguments of the function in the main loop(the hawtcolors and the strings) if you want to use it.