SRL Archive - OSR Help

What does this part of the code do?


Recursive

2012-04-28 15:55:35

Can someone explain what the numbers in the HumanMMouse() does and also for the Wait(RandomRange()).


if (Seq < 4) then
begin
if FindAltar(X, Y) then
begin
ClickMouse2(True);
Inc(AC);
if not DidRedClick then
goto ClickAltar;

While IsMoving_F do
Wait(1);

if (Seq < 3) then
begin
HumanMMouse(640, 220, 15, 15);
Wait(RandomRange(625, 900));

While IsMoving_F do
Wait(1);

Wait(RandomRange(100, 150));
end else if (Seq = 3) then
GameTab(tab_Magic);

I just want to tweak the script a bit to make it faster, I already did some tweaking in the wait function but I want to make sure I am actually messing with the right thing.

Le Jingle

2012-04-28 16:03:57

Pretty sure HumanMMouse is a human like moving mouse procedure designed by Flight.

Using this,
Wait(RandomRange(5000,6000);
You would wait any random number of integers inbetween 5000 ms and 6000 ms (5 and 6 seconds)

Rich

2012-04-28 16:32:07

Many different users have created their own variations of human like mouse functions, myself included. However, the majority you see will have four parameters (the numbers), or five if the function clicks as well. The first two are the coordinates to move the mouse to, and the second two numbers are the amount of randomness to add to the coordinates. The standard SRL procedures (Mouse and MMouse) are the same. Changing any of that wouldn't speed the script up but would more than likely mess it up.

As for the waiting, the guy about has got it spot on.

masterBB

2012-04-28 16:58:50

HumanMMouse(640, 220, 15, 15);
[INDENT]640: the x coordinate where to click.[/INDENT]

HumanMMouse(640, 220, 15, 15);
[INDENT]220: the y coordinate where to click[/INDENT]

HumanMMouse(640, 220, 15, 15);
[INDENT]15: the amount of pixels it may be off on the x-axis. So somewhere between 640 - 15 and 640 + 15 it will click[/INDENT]

HumanMMouse(640, 220, 15, 15);
[INDENT]15: Same as with the previous parameter, but on the y - axis[/INDENT]

Wait(RandomRange(625, 900));
[INDENT]625: The minimum amount of time the script will wait.[/INDENT]

Wait(RandomRange(625, 900));
[INDENT]900: The maximum amount of time the script will wait.[/INDENT]

You might think why we use these randoms, that is because a human will not wait exactly 800 ms every time and won't click on the same pixel every time.

edit:
super ninja'd. Had the tab waiting to long.

Recursive

2012-04-28 17:07:54

From: masterBB
HumanMMouse(640, 220, 15, 15);
[INDENT]640: the x coordinate where to click.[/INDENT]

HumanMMouse(640, 220, 15, 15);
[INDENT]220: the y coordinate where to click[/INDENT]

HumanMMouse(640, 220, 15, 15);
[INDENT]15: the amount of pixels it may be off on the x-axis. So somewhere between 640 - 15 and 640 + 15 it will click[/INDENT]

HumanMMouse(640, 220, 15, 15);
[INDENT]15: Same as with the previous parameter, but on the y - axis[/INDENT]

Wait(RandomRange(625, 900));
[INDENT]625: The minimum amount of time the script will wait.[/INDENT]

Wait(RandomRange(625, 900));
[INDENT]900: The maximum amount of time the script will wait.[/INDENT]

You might think why we use these randoms, that is because a human will not wait exactly 800 ms every time and won't click on the same pixel every time.

edit:
super ninja'd. Had the tab waiting to long.


Thank you