well ive been trying to get my mouse to click on one of 4 coords, randomly - how would i do that?
at first i had something like this:
SCAR Code:
var coords: array of integer;
begin
coords:= [(128,202),(311,212),(219,283),(221,150)];
clickmouse(coords[random(4)],true);
wait(500);
end;
then after quickly scrolling through these forums i tried this:
SCAR Code:
var coords: Array [0..3] of integer;
begin
coords[0]:= (128,202);
coords[1]:= (311,212);
coords[2]:= (219,283);
coords[3]:= (221,150);
for i:=0 to 2 do
clickmouse(coords[i],true);
wait(500);
end;
aaand obviously that fails too, but how SHOULD i write it?