Dumpin
2007-12-16 11:06:17
program New;
{ GetMouseColor searches for the color the mouse is currently on.
also will safe those Color to an integer }
var
Color : Array[1..1] of integer;
Function GetMouseColor:boolean;
var
x, y, I, Color1: integer;
begin
GetMousePos(x,y);
begin
Color1 := Color1+ GetColor(x,y);
begin
For I := 0 to (GetArrayLength(Color)-1) do
Writeln('The Color is: '+inttostr(Color1)+ '. Color is safed to: '+inttostr(Color[I]));
Result := true;
end;
end;
end;
begin
GetMouseColor;
end.Run it.. why do I get that error? :S
what i am trying is:
Get the color of where the mouse is Currently.
Then safes the Color To an integer.
the problem is I get this error.. please help me =D