SRL Archive - OSR Help

Slow the mouse?


bas

2012-10-13 17:54:54

Hello!
How can i slow the mouse? It goes like instant from here to there. i want to slowly moving the mouse instant of go instant

srry im high, i hope u guys can understand me right now :P

Its not for runescape.

Thanks! :)

Nebula

2012-10-13 18:03:36

Find mousespeed in the script you're using, and change it to a lower number.

For example, change this:

Mousespeed := 15;

to a lower number, such as this:

Mousespeed := 8;

bas

2012-10-13 18:07:16

From: Nebula
Find mousespeed in the script you're using, and change it to a lower number.


I mean i try to use simba to make a bot for World of Warcraft. i need to slow down the mouse by something so it wont move instantly to a monster or anything, its very botlike.

Something with MouseSpeed := 2;??

Can you give me a exaimple?

Thanks :)


program AutoFighter;
{$i SRL/SRL.Simba}

var
x,y: Integer;
Bmp: Integer;


procedure Attack;
begin
MoveMouse(261,930);
wait(randomrange(150,200));
ClickMouse(x,y,mouse_Left);

Wait(5000);
end;


begin

SetupSRL
MouseSpeed := 2;

wait(300);


Writeln('Starting Bot...');


repeat


Attack;

until(false);
end.

Nebula

2012-10-13 18:22:06

You have it correctly positioned in your script, but I would suggest increasing it to atleast 7 because 2 is extremely slow.

Actually, the source of your issue is not using the correct mouse procedure. Use MMouse instead of movemouse, and ClickMouse2 instead of clickmouse.

Try this out:


program AutoFighter;
{$i SRL/SRL.Simba}

var
x,y: Integer;
Bmp: Integer;


procedure Attack;
begin
MMouse(261,930, 0, 0);
wait(randomrange(150,200));
ClickMouse2(true);

Wait(5000);
end;


begin
ActivateClient;
SetupSRL;
MouseSpeed := 8;

wait(300);


Writeln('Starting Bot...');


repeat


Attack;

until(false);
end.

bas

2012-10-13 18:36:14

From: Nebula
You have it correctly positioned in your script, but I would suggest increasing it to atleast 7 because 2 is extremely slow.

Actually, the source of your issue is not using the correct mouse procedure. Use MMouse instead of movemouse, and ClickMouse2 instead of clickmouse.

Try this out:


program AutoFighter;
{$i SRL/SRL.Simba}

var
x,y: Integer;
Bmp: Integer;


procedure Attack;
begin
MMouse(261,930, 0, 0);
wait(randomrange(150,200));
ClickMouse2(true);

Wait(5000);
end;


begin
ActivateClient;
SetupSRL;
MouseSpeed := 8;

wait(300);


Writeln('Starting Bot...');


repeat


Attack;

until(false);
end.


Worked! thanks! :)