Results 1 to 5 of 5

Thread: FindObj moves mouse SO SLOW

  1. #1
    Join Date
    Feb 2013
    Posts
    4
    Mentioned
    0 Post(s)
    Quoted
    3 Post(s)

    Default FindObj moves mouse SO SLOW

    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.


    Code:
    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.
    Last edited by LittlePip; 02-10-2013 at 06:44 AM.

  2. #2
    Join Date
    Jan 2012
    Posts
    2,568
    Mentioned
    35 Post(s)
    Quoted
    356 Post(s)

    Default

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

  3. #3
    Join Date
    Mar 2006
    Posts
    13,241
    Mentioned
    228 Post(s)
    Quoted
    267 Post(s)

  4. #4
    Join Date
    Sep 2012
    Location
    Australia.
    Posts
    839
    Mentioned
    16 Post(s)
    Quoted
    225 Post(s)

    Default

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

    Be sure put SetupSRL; in your mainloop.

  5. #5
    Join Date
    Jan 2013
    Posts
    167
    Mentioned
    1 Post(s)
    Quoted
    33 Post(s)

    Default

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

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •