Does MMouse's random settings both support - randomisation and + randomisation ?

Does MMouse's random settings both support - randomisation and + randomisation ?
Try it?![]()
Ce ne sont que des gueux
Yes it does. All the randomizers do is add a number between 0 and the number you send. If that number is negative, then it will do +(the negative number).

Tried it and only did + randomizations, how would I make it do - randomizations too ?
MMouse(X-20, Y-20, -3, -4)?
Jus' Lurkin'
All MMouse does is like this:
MoveMouse(x+random(20),y+random(20));
but instead:
MMouse(x,y,20,20);
(obviously they are different, but you know what I mean).
So just do MMouse(x-random(20),y-random(10),0,0) if you want negative randomness.

Basically what I want is something which would do :
X
The 'X' being the described point in the two first parameters.
I would want it to go randomly in like 200 px radius around it.

Zomg, forgot about MouseBox...
Is it as safe as MMouse ?
do you mean something like this?
SCAR Code:function RanInt(magnitude : Integer) : Integer;
var
product : Integer;
begin
product := Random(magnitude+1) - Random(magnitude+1);
if(product=0) then Result := Random(magnitude) - Random(magnitude)
else Result := product;
end;
//
MMouse(x + RanInt(200), y + RanInt(200), 0, 0); //Move the mouse to a random point within a 200x200 pixle box of the origional point
Last edited by Lance; 06-03-2009 at 05:47 AM.
Lance. Da. Pants.
SCAR Code:procedure MouseBox(x1, y1, x2, y2: Integer; ClickType: Integer);
begin
case ClickType of
1 : Mouse(RandomRange(x1, x2), RandomRange(y1, y2), 0, 0, True);
2 : Mouse(RandomRange(x1, x2), RandomRange(y1, y2), 0, 0, False);
3 : MMouse(RandomRange(x1, x2), RandomRange(y1, y2), 0, 0);
else
srl_Warn('MouseBox', 'ClickType is NOT a valid number!', warn_AllVersions);
end;
end;
It is a safe as Mouse, because it is Mouse![]()
There are currently 1 users browsing this thread. (0 members and 1 guests)