i wanted to make a quick ghost mouse in scar, and then i kinda stumped myself, im sure it wouldnt be that hard, anyway, so all it would do after clicking play is wait say 5 seconds, then it gets mousepos (evry say 100 ms) stores it, and the replays movemouse to it....how would i do this??? err store or somthing??
edit: mixter got it thnx for looking tho.
SCAR Code:
program GhostMouse;
//by Mixster
var
x, y: Integer;
pts: array of TPoint;
procedure ScriptTerminate;
var
i: Integer;
begin
for i := 0 to High(pts) do
begin
Writeln('MMouse(' + IntToStr(pts[i].x) + ', ' + IntToStr(pts[i].y) + ', 2, 2);');
end;
end;
begin
repeat
Wait(100);
GetMousePos(x, y);
SetArrayLength(pts, High(pts) + 2);
pts[High(pts)].x := x;
pts[High(pts)].y := y;
until IsKeyDown('q');
end.