Log in

View Full Version : Setting mouse speed



HT BaaFly
11-18-2011, 06:49 PM
Hello,
Can someone tell me how to set the mouse's speed, especially during the bank pin event as it clicks on the numbers faster than the speed they load up at


thank you

Dynamite
11-18-2011, 06:51 PM
MouseSpeed := X;

(X being a number of your choice ;))

Hope I helped.

-Boom

HT BaaFly
11-18-2011, 07:06 PM
Thanks a lot :)
Another question, if you don't mind :)

I'm trying to script my first ever bot but I'm kind of stuck. I'm trying to get my script to cut logs. It does so, but only clicks on the top most trees and ignores the lower ones. Is there any way I can make it choose the one closest to the player or make it choose something other than the most top?

program New;
{$i SRL\SRL.scar}

function Findtree: Boolean;
var
x, y: integer;

begin
Result:= FindColorTolerance(x, y, 3034986, MSX1, MSY1, MSX2, MSY2, 20);
Mouse(x, y, 5, 5, True);
end;


begin
SetupSRL;
Findtree;
end.

Dynamite
11-18-2011, 07:54 PM
Sort(A)TPA will sort your TPA from closest to farthest (iirc) :)

-Boom

HT BaaFly
11-18-2011, 08:30 PM
Thank you for your kind help :D

footballjds
11-18-2011, 10:27 PM
Sort(A)TPA will sort your TPA from closest to farthest (iirc) :)

-Boom

You'll have to use FindColorSTolerance in order to take advantage of this.
Try reading around about TPA's, they're so godamn amazing

Dynamite
11-19-2011, 12:33 AM
You'll have to use FindColorSTolerance in order to take advantage of this.
Try reading around about TPA's, they're so godamn amazing

This man is very right :)

-Boom