noidea
2008-12-23 13:30:25
It's quite simple, but it works.
It determines from your current mouse position how for to go past and how high or low to go past your object. It will then come back and click, left or right. IT automatically adds randomness.
LIke I said, its simple.
OH yea. Sandstorm asked for help on a function like this a while ago.
So I just wrote my own this morning looking the the scripts I have.
Rate, HAte?
Used like
nMouse(x, y, 'Your rs uptext here', LeftClickOrRight);
It determines from your current mouse position how for to go past and how high or low to go past your object. It will then come back and click, left or right. IT automatically adds randomness.
LIke I said, its simple.
OH yea. Sandstorm asked for help on a function like this a while ago.
So I just wrote my own this morning looking the the scripts I have.
Rate, HAte?
Used like
nMouse(x, y, 'Your rs uptext here', LeftClickOrRight);
Function nMouse(x, y: Integer; s: String; Left: Boolean): Boolean;
var
OrigSpeed, Option, Tx, Ty, Gx, Gy, Lx, Ly: Integer;
begin
OrigSpeed := MouseSpeed;
Tx := 0;
Ty := 0;
GetMousePos(Gx, Gy);
If( Gx >= x )and( Gy >= y )then Option := 0;
If( Gx <= x )and( Gy <= y )then Option := 1;//Option := 1;
If( Gx >= x )and( Gy <= y )then Option := 2;
If( Gx <= x )and( Gy >= y )then Option := 3;
case Option of
0: begin
Tx := -70;
Ty := -60;
end;
1: begin
Tx := 70;
Ty := 60;
end;
2: Begin
Tx := -70;
Ty := 60;
end;
3: begin
Tx := 70;
Ty := -60;
end;
end;
MouseSpeed := randomRange(30, 32);
Writeln(inttostr(MouseSpeed));
mmouse(x + Tx, y + Ty, 6, 6);
wait(20+random(50));
MouseSpeed := 7 + random(2);
Writeln(inttostr(MouseSpeed));
mmouse(x, y, 4, 4);
wait(100+random(100));
if isuptext(s) then
begin
getmousepos(lx, ly);
mouse(x, y, 0, 0, left);
Result := True;
MouseSpeed := OrigSpeed;
exit;
end;
Writeln('Error: Wrong UpText!');
Result := False;
MouseSpeed := OrigSpeed;
end;