how do i find a color that is greater than or less than a specific color.
for example
if there were a dot boucing around a screen and it changes size and color how would i find it. and retrieve xy coordinates and color.
how do i find a color that is greater than or less than a specific color.
for example
if there were a dot boucing around a screen and it changes size and color how would i find it. and retrieve xy coordinates and color.
i figured it out myself but its completely useless unless you dont mind waiting all day for it so if anyone else was wondering here it is.
SCAR Code:program FindAColor;
var
x,y,color: Integer;
ColorResult: Boolean;
begin
color:= 0;
repeat
ColorResult:= FindColor(x,y,color,0,0,100,100);
color:= color + 1;
until(ColorResult = True);
writeln(IntToStr(color));
writeln(IntToStr(x)+', '+IntToStr(y));
end.
Remember standards. (You forgot to add the spaces after repeat.)
SCAR Code:program FindAColor;
var
x,y,color: Integer;
ColorResult: Boolean;
begin
color:= 0;
repeat
ColorResult:= FindColor(x,y,color,0,0,100,100);
color:= color + 1;
until(ColorResult = True);
writeln(IntToStr(color));
writeln(IntToStr(x)+', '+IntToStr(y));
end.
Could you give an example of what you're trying to find?
Scripts: Varrock Smither! | Fight Caves Runner! | Kebab Buyer! | L.A.M.E. (Outdated)
Tutorials: SRL user-defined procedures | JaGex UID files | Printing your scripts
Applications: StartUp Notepad | SCAR Assistant
Misc: FREE Delphi 7 v2 | Official SRL Graphics
Example is there..
Sounds like a flash game lol. Find it by object/DTM/BMPif there were a dot boucing around a screen and it changes size and color how would i find it. and retrieve xy coordinates and color.![]()
Rogeruk's Al-Kharid Tanner V1.1 [Released]
Rogeruk's Barbarian Crafter [Coming Soon]
Rogeruk's Guild Fisher [Coming Soon]
!! - Taking Requests - !!
ya it is a flash game ill give it a try.
There are currently 1 users browsing this thread. (0 members and 1 guests)