SCAR Code:
function AutoColor(Thing : String) : integer;
begin
if not loggedin then exit;
Writeln('');
Writeln('Hover Your Mouse Over ' + Thing);
repeat
if not loggedin then break;
wait(500);
until(IsUpText(Thing));
if not loggedin then exit;
Getmousepos(x,y);
MMouse(x,y,2,2)
Result:= GetColor(x,y);
writeln('Color = ' + inttostr(Result));
end;
SCAR Code:
{.include srl/srl.scar}
var color : integer;
function AutoColor(Thing : String) : integer;
begin
if not loggedin then exit;
Writeln('');
Writeln('Hover Your Mouse Over ' + Thing);
repeat
if not loggedin then break;
wait(500);
until(IsUpText(Thing));
if not loggedin then exit;
Getmousepos(x,y);
MMouse(x,y,2,2)
Result:= GetColor(x,y);
writeln('Color = ' + inttostr(Result));
end;
begin
Setupsrl;
Color:= AutoColor('Tree')
Writeln('Color: ' + inttostr(Color))
end.
basically u just run this and hover ur mouse over a tree or something that will trigger the keyword of (Autocolor('Tree')) in that case Tree.
when u move ur mouse over a tree it will pick a color of the tree.
dunno if this already exists in SRL, if not add it or.. this autocolor will not be there..