SCAR Code:program New;
function MyFunction: TPoint;
begin
Result.X := 500;
Result.Y := 500;
end;
begin
MoveMouse(MyFunction.X, MyFunction.Y);
end;
doesn't compile sadly, anyway to get around this??
edit: tried this as well
SCAR Code:program New;
function MyFunction: TIntegerArray;
begin
Result[0] := 500;
Result[1] := 500;
end;
begin
SetArrayLength(MyFunction, 2);
MoveMouse(MyFunction[0], MyFunction[1]);
end.
is it impossible to make a function an array or custom var?


Reply With Quote








