YoHoJo
2012-01-11 06:46:59
How do you paint mouse onto SMART like this:
(Scroll down on there to see pictures)
http://villavu.com/forum/showthread.php?t=68701
(Scroll down on there to see pictures)
http://villavu.com/forum/showthread.php?t=68701
2012-01-11 06:46:59
2012-01-11 06:56:37
procedure WindMouse2(xs, ys, xe, ye, gravity, wind, minWait, maxWait, maxStep, targetArea: extended);
var
veloX, veloY, windX, windY, veloMag, dist, randomDist, lastDist, step: extended;
lastX, lastY: integer;
sqrt2, sqrt3, sqrt5: extended;
begin
sqrt2:= sqrt(2);
sqrt3:= sqrt(3);
sqrt5:= sqrt(5);
while hypot(xs - xe, ys - ye) > 1 do
begin
dist:= hypot(xs - xe, ys - ye);
wind:= minE(wind, dist);
if dist >= targetArea then
begin
windX:= windX / sqrt3 + (random(round(wind) * 2 + 1) - wind) / sqrt5;
windY:= windY / sqrt3 + (random(round(wind) * 2 + 1) - wind) / sqrt5;
end else
begin
windX:= windX / sqrt2;
windY:= windY / sqrt2;
if (maxStep < 3) then
begin
maxStep:= random(3) + 3.0;
end else
begin
maxStep:= maxStep / sqrt5;
end;
end;
veloX:= veloX + windX;
veloY:= veloY + windY;
veloX:= veloX + gravity * (xe - xs) / dist;
veloY:= veloY + gravity * (ye - ys) / dist;
if hypot(veloX, veloY) > maxStep then
begin
randomDist:= maxStep / 2.0 + random(round(maxStep) div 2);
veloMag:= sqrt(veloX * veloX + veloY * veloY);
veloX:= (veloX / veloMag) * randomDist;
veloY:= (veloY / veloMag) * randomDist;
end;
lastX:= Round(xs);
lastY:= Round(ys);
xs:= xs + veloX;
ys:= ys + veloY;
if (lastX <> Round(xs)) or (lastY <> Round(ys)) then
MoveMouse(Round(xs), Round(ys));
step:= hypot(xs - lastX, ys - lastY);
wait(round((maxWait - minWait) * (step / maxStep) + minWait));
lastdist:= dist;
SMART_DrawDotsEx(False, [Point(lastX, lastY)], 65280); //Here
end;
if (Round(xe) <> Round(xs)) or (Round(ye) <> Round(ys)) then
MoveMouse(Round(xe), Round(ye));
end;
2012-01-11 06:58:27
2012-01-11 07:00:42
2012-01-11 07:15:14
MMouse(MCCX, MCCY, 0, 0); /Just for testing.
GetMousePos(M.x, M.y);
P1:= Point(M.x - 5, M.Y - 5);
P2:= Point(M.X + 5, M.Y + 5);
Smart_DrawLine(True, P1, P2, CLRed);
P1:= Point(M.x + 5, M.Y - 5);
P2:= Point(M.X - 5, M.Y + 5);
Smart_DrawLine(False, P1, P2, CLRed);
2012-01-11 07:19:31
2012-01-11 08:49:32