wantonman
2012-12-06 01:49:42
hey, was looking at this conversion function
and how to go about making my own…
Point(x:LongInt;y:LongInt):Tpointand was wondering about the actual contents of the functionand how to go about making my own…
//13026246-grey//2737143-gold_yellow
program New;
var
mpos:tpoint;
const
mmx1=408;
mmy1=103;
mmx2=566;
mmy2=263;
function point(xx,yy:integer):tpoint;
begin
result.x:=xx;
result.y:=yy;
end;
function rpos:tpoint;
begin
case random(1)of
0:result:=point(mpos.x+Random(5),mpos.y+Random(5));
1:result:=point(mpos.x-Random(5),mpos.y-Random(5));
end;
end;
begin
FindColorTolerance(mpos.x,mpos.y,13026246,mmx1,mmy1,mmx2,mmy2,4);
MoveMouseSmooth(rpos.x,rpos.y);
end.