Results 1 to 6 of 6

Thread: MMouse unknows?

  1. #1
    Join Date
    Mar 2007
    Posts
    20
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default MMouse unknows?

    Just noticed I misspelled the title, I meant Unknown, Sorry

    Hi everyone,

    I just recently started scripting, and after a couple of TuTs I think I'm getting along pretty well .

    anway, here's my problem, Every time I add a new procedure to my script i test it, and if there's no problem with it I continue...everything is going fine UNTIL! (false ) I added a banking function to my script, (note: before that everything was allright) I tested the script and got an error!:
    Line 54: [Error] (54:1): Unknown identifier 'MMouse' in script
    MMouse was working fine before...I have no idea what changed...

    anyone who can help me?

    Quipeace

    EDIT:

    SCAR Code:
    program WillowXL;
    {.include SRL/SRL.scar}
    {.include SRL/SRL/Skill/WoodCutting.scar}



    ///////V DO NOT EDIT THIS V/////////////////////////////////////////////////////
    var
    x:      Integer;
    y:      Integer;
    load:   Integer;
    ///////V EDIT THIS V ///////////////////////////////////////////////////////////
    const
    pin   = '';
    user  = '';
    pass  = '';
    loads = 50; // <-- Number of Loads u would like to do
    ///////^ STOP EDITING HERE ^////////////////////////////////////////////////////



    ////////////////////////////////////////////////////////////////////////////////
    //------------------------> SCRIPT STARTING HERE <----------------------------//
    ////////////////////////////////////////////////////////////////////////////////
    procedure Login;
    begin
    if (FindColor(x,y,16777215,445,290,445,290)) then
         begin
         MMouse   (x,y,0,0);
         mouse    (x,y,0,0,true);
         wait     (500+random(50));
         TypeSend (user);
         wait     (500+random(50));
         TypeSend (pass);
         MMouse   (310,325,0,0);
         Mouse    (310,325,0,0,true);
         Wait     (5000+random(200));
         MMouse   (405,325,0,0);
         Mouse    (405,325,0,0,true);
         end else
              begin
              ClearDebug;
              Writeln('|--------------FATAL ERROR---------------|');
              Writeln('|Script Error: Could not manage to login.|');
              Writeln('|--------------FATAL ERROR---------------|');
              end;
    end;

    procedure CheckLogin;
    begin
         if not LoggedIn then
         Login;
    end;
    ////////////////////////////////////////////////////////////////////////////////
    procedure CompS;                                                              //
    begin                                                                         //
         Wait       (1000+random(100));                                           //
         MakeCompass ('S');                                                       //
         Wait       (1000+random(100));                                           //
    end;                                                                          //
    ////////////////////////////////////////////////////////////////////////////////
    procedure CompN;                                                              //
    begin                                                                         //
         Wait       (1000+random(100));                                           //
         MakeCompass ('N');                                                       //
         Wait       (1000+random(100));                                           //
    end;                                                                          //
    ////////////////////////////////////////////////////////////////////////////////
    Procedure Chopping;                                                           //
    begin                                                                         //
    repeat                                                                        //
         CompS;                                                                   //
         if FindObjCustom(x,y,['Wil','low'],[1989969,3760987,2844763],7) then     //
         begin                                                                    //
         Mouse(x,y,0,0,false);                                                    //
                   repeat                                                         //
                   wait(100 + (random(150)));                                     //
                   chooseOption('hop')                                            //
                   until(InvFull)                                                 //
         end;                                                                     //
    until(InvFull)                                                                //
    end;                                                                          //
    ////////////////////////////////////////////////////////////////////////////////
    function Banking: Boolean;
    begin
      if (InvFull) then
      begin
        CompN
        Wait (400 + random(200));
        OpenBankQuiet('db');
        if (PinScreen) then
        InPin(YourPin);
          if(FindColorSpiral(x, y, 4155248,547,206,734,464))then
        begin
         Mouse(x, y, 4, 3, false);
         ChooseOption('All');
        end;
         CloseBank;
         Wait(150 + random (278));
         CompS;
      end;
    end;
    ////////////////////////////////////////////////////////////////////////////////
    begin
    SetupSRL;
    ClearDebug;
    login;
    CheckLogin
    Chopping;
    Banking;
    end.

  2. #2
    Join Date
    Dec 2007
    Location
    192.168.1.73
    Posts
    2,439
    Mentioned
    6 Post(s)
    Quoted
    119 Post(s)

    Default

    Is {.include srl/srl.scar} underneath the program name

  3. #3
    Join Date
    Mar 2007
    Posts
    20
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    ur kidding me right? is that the prob? Thanks Alot!

    you really learn something new every day

  4. #4
    Join Date
    Jun 2007
    Location
    Wednesday
    Posts
    2,446
    Mentioned
    3 Post(s)
    Quoted
    1 Post(s)

    Default

    Could you post the script so we can help better. Also, make sure you spelt MMouse properly (I often having the problem of using M/Mose, M/Muse or M/Muose by mistake)
    By reading this signature you agree that mixster is superior to you in each and every way except the bad ways but including the really bad ways.

  5. #5
    Join Date
    May 2007
    Location
    Some where fun.
    Posts
    2,891
    Mentioned
    1 Post(s)
    Quoted
    5 Post(s)

    Default

    Quote Originally Posted by quipeace View Post
    ur kidding me right? is that the prob? Thanks Alot!

    you really learn something new every day
    Theres aleady a login function in srl.

  6. #6
    Join Date
    Sep 2007
    Posts
    415
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Along with there already being a login function..
    SCAR Code:
    if not(loggedin) then loginplayer;

    instead of using mmouse...mouse you can just use mouse if you aren't getting uptext or whatever
    SCAR Code:
    mmouse(15,15,15,15);
    mouse(15,15,15,15,true);
    //instead you can just do..
    mouse(15,15,15,15,true);
    //its the same thing, you only need mmouse if you are doing
    //something inbetween
    Quote Originally Posted by That guy that wrote forefeathers
    <munklez>haha im too lazy, girls annoy me
    <munklez> they always wanna like, do stuff
    <munklez> and i just wanna program
    <munklez> and they always take all my money

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. MMouse help
    By rogue poser in forum OSR Help
    Replies: 9
    Last Post: 12-02-2007, 06:13 PM
  2. MMouse ???
    By saurkulsh in forum OSR Help
    Replies: 2
    Last Post: 10-25-2007, 05:04 PM
  3. MMouse Box
    By mat_de_b in forum Research & Development Lounge
    Replies: 8
    Last Post: 08-23-2007, 11:51 AM
  4. Until and MMouse..
    By Rikje in forum OSR Help
    Replies: 5
    Last Post: 06-02-2007, 02:57 PM
  5. MMouse Help!
    By MacroHawk in forum OSR Help
    Replies: 2
    Last Post: 05-13-2007, 09:56 AM

Posting Permissions

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