SRL Archive - Help

FindObj moves mouse SO SLOW


LittlePip

2013-02-10 01:39:49

I'm using FindObj to find an object and it is working fine but it moves the mouse across the screen so incredibly slow. It takes several minutes for the cursor to get halfway across the runescape client. Anyone know what i'm doing wrong? here's the script for reference.


program Theiving;
{$i srl/srl.simba}
var
x,y:Integer;

Procedure Steal;
begin
//if FindColorTolerance(x,y,2014744,6,27,510,330,35) then
if FindObj(x,y,'pice',2014744,100) then
begin
Writeln('found');
end;
end;

begin
Steal;
end.

A bit of an afterthought, I've been scripting with SCAR for a while and today I've been messing around with Simba and SRL. Is there any documentation with a description of everything in SRL that I can use, or do I need to search through the .simba files?


EDIT: Ok what the fuck is with the Mouse() function? It's shit, it also moves the cursor at about a 2 pixels a second.

riwu

2013-02-10 01:44:18

MouseSpeed is 0 by default.
Call SetupSRL() or set MouseSpeed at start of script.

Hobbit

2013-02-10 02:00:11

http://docs.villavu.com/simba/
http://docs.villavu.com/srl-5/

Chris!

2013-02-10 02:07:57

Swearing isn't allowed outside of the BBQ Pit section, so please refrain from that.

Be sure put SetupSRL; in your mainloop.

Hexless

2013-02-10 11:39:23

I know i may sound 'nooby' but how come when i use findobj it says its not valid? help please any1?