Originally Posted by
darker2k
I need a command that makes me the function of the left click, since the "ClickMouse(x,y,1)" uses static coordinates and that does not help me.
Any Suggestions?
Sorry for my bad english haha.
Thanks,
You can do what bg5 said, but turn it into a procedure:
Simba Code:
procedure RanMouse(x, y, ran: integer);
begin
x := Random(x-ran, x+ran);
y := Random(y-ran, y+ran);
MoveMouse(x, y);
ClickMouse(x, y, 1);
end;
Now your code would look like this:
Simba Code:
program bounty;
procedure RanMouse(x, y, ran: integer);
begin
x := Random(x-ran, x+ran);
y := Random(y-ran, y+ran);
MoveMouse(x, y);
ClickMouse(x, y, 1);
end
procedure Place();
begin
RanMouse(356, 348, 5); // Randomness of 5 pixels
Wait(3000);
RanMouse(477,257, 5);
Wait(3000);
RanMouse(507,442, 10); // Randomness of 10 pixels
Wait(93000);
end;
begin
repeat
Place();
until(False)
end.