Results 1 to 6 of 6

Thread: Need some help with my script.

  1. #1
    Join Date
    Jun 2014
    Posts
    12
    Mentioned
    0 Post(s)
    Quoted
    7 Post(s)

    Default Need some help with my script.

    hey guys,

    i'm new in the simba world and i have seen a tutrial and copied the code to learn but when i run it i get an error with the MMouse.

    Here is the code:
    Code:
    Program BitmapExample;
    {$i srl-6/srl.simba}
    var
      Drop:Integer;
    Procedure DropLog;
    var
      X,Y:Integer;
    begin
    if FindColorTolerance(X, Y, 605787, 561, 226, 738, 484, 5) then
    begin
      MMouse(x, y,1,1);
      wait(250);
      ClickMouse(X, Y, mouse_Right)
      wait(450);
        if FindBitmapToleranceIn(Drop, X, Y, 561, 226, 738, 484, 145) then
        begin
          MMouse(x, y,1,1);
          wait(250);
          ClickMouse(X, Y, mouse_Left)
        end;
      end;
    end;
    Begin
    MouseSpeed := 15;
    Drop := BitmapFromString(123, 8, 'meJzNlEsOwyAMRLldLtBt73+MNA' +
            'IFWZ5PXJpIRSyIcWx4HtNa217v1sex2PsY67VZj7CfYzlX7TytH2f' +
            '9RjemONyWcf0IfLo9zfzfgKfL7mF4o3euA9/O/lpO7UuGNIZlTPRE' +
            'u/KZbvRHbeS48JFJary0eyxYl+lTT50WFeDzs/+VoaGdhooD7T7LP' +
            'L/nQF/4BJP65PNBIWitfWoFnLaVAq625jTRqJiTP40WgVNclKqSn4' +
            'oghOfwPg08clCaVFcw3UF7AUrMMVIyX8mvCLxouV3hcB2pfHF+569' +
            '2B/CYN0paidyI/17gKQWqYgE4ilzZMZrqjrjlox2LD3oDSx8=');
    DropLog;
    FreeBitmap(Drop);
    end.
    And this is my error:
    Error: Unknown declaration "MMouse" at line 11
    Compiling failed.

    I hope that someone can help me with this.

    -Ryan

  2. #2
    Join Date
    Apr 2013
    Posts
    680
    Mentioned
    13 Post(s)
    Quoted
    341 Post(s)

    Default

    I am not expert on SRL6 as i use different includes.. but i have had a quick look through the SRL6 include.

    Code:
    moveMouse(x, y);
    May be what your after? Have a quick look through the includes on the your C:\Simba\Includes\srl-6\lib\core\Mouse

    <------------------>



  3. #3
    Join Date
    Jun 2014
    Posts
    12
    Mentioned
    0 Post(s)
    Quoted
    7 Post(s)

    Default

    Didn't help, will search in the file, thanks anyway

  4. #4
    Join Date
    Jun 2014
    Posts
    463
    Mentioned
    27 Post(s)
    Quoted
    229 Post(s)

    Default

    I haven't used SRL-6 in a good while, but it's because MMouse isn't a procedure/function.

    moveMouse is though! Try that.

    For more on the mouse http://docs.villavu.com/simba/script...dkeyboard.html
    Tsunami

  5. #5
    Join Date
    Jun 2014
    Posts
    12
    Mentioned
    0 Post(s)
    Quoted
    7 Post(s)

    Default

    if i change the srl-6/srl.simba to srl/srl.simba i also get an error that it haven't found simba.srl.

    In the tutorial he also udes srl/.srl.simba.

    Will try some things that you linked.

  6. #6
    Join Date
    Dec 2011
    Location
    East Coast, USA
    Posts
    4,231
    Mentioned
    112 Post(s)
    Quoted
    1869 Post(s)

    Default

    Quote Originally Posted by ryan191 View Post
    if i change the srl-6/srl.simba to srl/srl.simba i also get an error that it haven't found simba.srl.

    In the tutorial he also udes srl/.srl.simba.

    Will try some things that you linked.
    In that case you're using an outdated tutorial, {$i srl/srl.simba} is for SRL-5 which we no longer use.

    The concepts you learn will still be relevant, but a lot of the procedures/functions have been changed in SRL-6 which is what we use today

    If perchance you'd like to switch to a more updated tutorial, allow me to recommend this excellent one: https://villavu.com/forum/showthread.php?t=107757
    GitLab projects | Simba 1.4 | Find me on IRC or Discord | ScapeRune scripts | Come play bot ScapeRune!

    <BenLand100> we're just in the transitional phase where society reclassifies guns as Badâ„¢ before everyone gets laser pistols

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
  •