TheGuyWhoGotOn
2007-10-22 21:05:06
I was wondering what people thought of these procedures I made:
Chance is the chance for it to do it decided by maxmistakes for example: chance = 200 and maxmistakes = 5, that means there is a 5 in 200 chance in making at least 1 mistake. Used like:
The following is NOT meant to replace "mmouse" or any other mouse procedures, it's just another way of doing it please do not flame me.
Ok let me explain all this, x and y are the coordinates, xran and yran are how random it is where the cursor clicks, xshake and yshake or how shaky the mouse is (I recommend 2), delay is how much of a delay there is per movement, delran is how random the delays are, and left is weather to click the left mouse button or the right mouse button.
Ok, any questions, comments, or suggestions?
procedure PerfectType(message1: string; chance, maxmistakes: integer);
var lengths, number, othernumber: integer;
letter1, letter2: string;
begin
othernumber:= random(chance + 1)
if othernumber < maxmistakes + 1 then
begin
repeat
lengths:= length(message1)
repeat
number:= random(lengths + 1)
until(number > 1)and(number = lengths = false)
letter1:= message1[number]
letter2:= message1[number - 1]
delete(message1, number, 1);
insert(letter2, message1, number);
delete(message1, number - 1, 1);
insert(letter1, message1, number - 1);
othernumber:= othernumber - 1
until(othernumber < 0)
end;
typesend(message1);
end;
Chance is the chance for it to do it decided by maxmistakes for example: chance = 200 and maxmistakes = 5, that means there is a 5 in 200 chance in making at least 1 mistake. Used like:
perfecttype('These are words', 7, 2);The following is NOT meant to replace "mmouse" or any other mouse procedures, it's just another way of doing it please do not flame me.
procedure PerfectMouseEx(x, y, xran, yran, xshake, yshake, delay, delran: integer; left: boolean);
var xx, yy, xx1, yy1, rand: integer;
begin
getmousepos(xx, yy);
getmousepos(xx1, yy1);
x:= x - xran + random(xran * 2)
y:= y - yran + random(yran * 2)
xx:= xx - x
yy:= yy - y
repeat
if (xx > 0)or(xx = 0) then
begin
rand:= 1 + random(xshake)
xx:= xx - (rand)
xx1:= xx1 - (rand)
end;
if xx < 0 then
begin
rand:= 1 + random(xshake)
xx:= xx + (rand)
xx1:= xx1 + (rand)
end;
if (yy > 0)or(yy = 0) then
begin
rand:= 1 + random(xshake)
yy:= yy - (rand)
yy1:= yy1 - (rand)
end;
if yy < 0 then
begin
rand:= 1 + random(xshake)
yy:= yy + (rand)
yy1:= yy1 + (rand)
end;
movemouse(xx1, yy1);
wait(delay + random(delran));
until((xx = 0)and(yy = 0))
wait(delay * 25 + random(delran * 7));
getmousepos(xx, yy);
holdmouse(xx, yy, left);
wait(31 + random(50));
releasemouse(xx, yy, left);
end;
procedure PerfectMouse(x, y, xran, yran: integer; left: boolean);
var xx, yy, xx1, yy1, rand: integer;
begin
getmousepos(xx, yy);
getmousepos(xx1, yy1);
x:= x - xran + random(xran * 2)
y:= y - yran + random(yran * 2)
xx:= xx - x
yy:= yy - y
repeat
if (xx > 0)or(xx = 0) then
begin
rand:= 1 + random(2)
xx:= xx - (rand)
xx1:= xx1 - (rand)
end;
if xx < 0 then
begin
rand:= 1 + random(2)
xx:= xx + (rand)
xx1:= xx1 + (rand)
end;
if (yy > 0)or(yy = 0) then
begin
rand:= 1 + random(2)
yy:= yy - (rand)
yy1:= yy1 - (rand)
end;
if yy < 0 then
begin
rand:= 1 + random(2)
yy:= yy + (rand)
yy1:= yy1 + (rand)
end;
movemouse(xx1, yy1);
wait(2 + random(2));
until((xx = 0)and(yy = 0))
wait(2 * 25 + random(2 * 7));
getmousepos(xx, yy);
holdmouse(xx, yy, left);
wait(31 + random(50));
releasemouse(xx, yy, left);
end;
procedure PerfectMoveEx(x, y, xran, yran, xshake, yshake, delay, delran: integer);
var xx, yy, xx1, yy1, rand: integer;
begin
getmousepos(xx, yy);
getmousepos(xx1, yy1);
x:= x - xran + random(xran * 2)
y:= y - yran + random(yran * 2)
xx:= xx - x
yy:= yy - y
repeat
if (xx > 0)or(xx = 0) then
begin
rand:= 1 + random(xshake)
xx:= xx - (rand)
xx1:= xx1 - (rand)
end;
if xx < 0 then
begin
rand:= 1 + random(xshake)
xx:= xx + (rand)
xx1:= xx1 + (rand)
end;
if (yy > 0)or(yy = 0) then
begin
rand:= 1 + random(xshake)
yy:= yy - (rand)
yy1:= yy1 - (rand)
end;
if yy < 0 then
begin
rand:= 1 + random(xshake)
yy:= yy + (rand)
yy1:= yy1 + (rand)
end;
movemouse(xx1, yy1);
wait(delay + random(delran));
until((xx = 0)and(yy = 0))
end;
procedure PerfectMove(x, y, xran, yran: integer);
var xx, yy, xx1, yy1, rand: integer;
begin
getmousepos(xx, yy);
getmousepos(xx1, yy1);
x:= x - xran + random(xran * 2)
y:= y - yran + random(yran * 2)
xx:= xx - x
yy:= yy - y
repeat
if (xx > 0)or(xx = 0) then
begin
rand:= 1 + random(2)
xx:= xx - (rand)
xx1:= xx1 - (rand)
end;
if xx < 0 then
begin
rand:= 1 + random(2)
xx:= xx + (rand)
xx1:= xx1 + (rand)
end;
if (yy > 0)or(yy = 0) then
begin
rand:= 1 + random(2)
yy:= yy - (rand)
yy1:= yy1 - (rand)
end;
if yy < 0 then
begin
rand:= 1 + random(2)
yy:= yy + (rand)
yy1:= yy1 + (rand)
end;
movemouse(xx1, yy1);
wait(2 + random(2));
until((xx = 0)and(yy = 0))
end;
Ok let me explain all this, x and y are the coordinates, xran and yran are how random it is where the cursor clicks, xshake and yshake or how shaky the mouse is (I recommend 2), delay is how much of a delay there is per movement, delran is how random the delays are, and left is weather to click the left mouse button or the right mouse button.
Ok, any questions, comments, or suggestions?