Results 1 to 4 of 4

Thread: Need help with Mouse command

  1. #1
    Join Date
    Dec 2011
    Posts
    189
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Need help with Mouse command

    Hello
    I tried to use TomTuff's Superglass Maker earlier today but i couldnt get it work cuz of

    [Hint] C:\Simba\Simba\Includes\SRL/SRL/core/gametab.scar(1607:3): Variable 'PREVIOUS' never used at line 1606
    [Error] (188:5): Unknown identifier 'FindColorsToleranceOptimised' at line 187
    Compiling failed

    So i tried to make my own (VERY) simple glassmaker at SW lobby !
    However when i do a Mouse command like this
    Mouse(x, y, 7, 7, true);
    it like moves the mouse pixel by pixel to the destination, and thats very slowly and not human like at all, i watched YoHoJo's Youtube vids about scripting and he made the same command but the mouse moved smoothly and nice.
    Help would be nice!

    heres how he script looks so far

    Simba Code:
    program SuperGlassMaker;

    {$i SRL/SRL.scar}

    procedure ClicktheBank;
    var
    x, y:integer;
    begin
      if FindColorSpiralTolerance(x, y, 5924981, 243, 122, 273, 134, 10)then
      begin
        MoveMouse(x, y);
        ClickMouse(x, y, 1);
        wait(1200 + random(200));
      end;
    end;

    procedure WithdrawMaterials;
    begin
      Mouse(145, 106, 7, 7, false);
      Mouse(140, 182, 1, 1, true);
      Wait(500 + random(200));
      Mouse(186, 108, 7, 7, false);
      Mouse(183, 184, 1, 1, true);
    end;

    procedure MaketheGlass;
    begin
      Mouse(488, 35, 3, 3, true);
      Mouse(634, 372, 3, 3, true);
      Wait(3000 + random(200));
    end;

    procedure BanktheGlass;
    var
    x, y:integer;
    begin
      if FindColorSpiralTolerance(x, y, 5924981, 243, 122, 273, 134, 10)then
      begin
        Mouse(x, y, 15, 15, true);
        wait(1200 + random(200));
        Mouse(580, 267, 7, 7, false);
        Mouse(581, 372, 4, 4, true);
        Wait(700 + random(200));
      end;
    end;


    begin
      ClicktheBank
      repeat
      WithdrawMaterials
      MaketheGlass
      BanktheGlass
      until(false)
    end.

  2. #2
    Join Date
    Dec 2011
    Posts
    189
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    bump!!

  3. #3
    Join Date
    Oct 2008
    Location
    C:\Simba\Includes\
    Posts
    7,566
    Mentioned
    19 Post(s)
    Quoted
    180 Post(s)

    Default

    Yo, you have to give more than an hour for someone to respond Please don't double post.

    Anyway, to answer your question, you need "SetupSRL;" as the first line in your main loop.
    Away for awhile, life is keeping me busy. | Want to get my attention in a thread? @Kyle Undefined; me.
    { MSI Phoenix || SRL Stats Sigs || Paste || Scripts || Quotes || Graphics }

    When posting a bug, please post debug! Help us, help you!

    I would love to change the world, but they won't give me the source code. || To be the best, you've got to beat the rest. || Logic never changes, just the syntax.
    If you PM me with a stupid question or one listed in FAQ, or about a script that is not mine, I will NOT respond.


    SRL is a Library of routines made by the SRL community written for the Program Simba. We produce Scripts for the game Runescape.


  4. #4
    Join Date
    Dec 2011
    Posts
    189
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Kyle Undefined View Post
    Yo, you have to give more than an hour for someone to respond Please don't double post.

    Anyway, to answer your question, you need "SetupSRL;" as the first line in your main loop.
    thanks alot mate!!

    im used to mmo-champs forums where u have to bump like once every 20mins so sorry

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
  •