Results 1 to 6 of 6

Thread: Mousebox?

  1. #1
    Join Date
    Mar 2009
    Location
    Illinois
    Posts
    292
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Mousebox?

    What are you parameters because in my script that i'm making I have:
    SCAR Code:
    MouseBox(562, 341, 581, 357);
    But it gives me the following error:
    Line 31: [Error] (16237:29): Invalid number of parameters in script C:\Users\Brian\Desktop\Brian's Documents\Scar Scripts\My Scripts\AutoAlcher.scar
    Even though I thought I had the the parameters right...Anyone know?
    Last edited by All that is man; 03-30-2009 at 02:00 AM.

  2. #2
    Join Date
    Dec 2006
    Location
    Sweden
    Posts
    10,812
    Mentioned
    3 Post(s)
    Quoted
    16 Post(s)

    Default

    SCAR Code:
    {*******************************************************************************
    procedure MouseBox(x1, y1, x2, y2: Integer; ClickType: Integer);
    By: SKy Scripter and Nielsie95
    Description: Moves mouse into a random position in the box. Clicks if told to.
    *******************************************************************************}


    procedure MouseBox(x1, y1, x2, y2: Integer; ClickType: Integer);
    begin
      case ClickType of
        1 : Mouse(RandomRange(x1, x2), RandomRange(y1, y2), 0, 0, True);
        2 : Mouse(RandomRange(x1, x2), RandomRange(y1, y2), 0, 0, False);
        3 : MMouse(RandomRange(x1, x2), RandomRange(y1, y2), 0, 0);
      else
        srl_Warn('MouseBox', 'ClickType is NOT a valid number!', warn_AllVersions);
      end;
    end;
    You forgot what type of click you want for the 5th parameter. Choose 1 to click with the left mouse button (a normal click), 2 to click with the right mouse button, and 3 to just move the mouse there.

    In the future, please check in the SRL includes before making a thread, thanks.


    Send SMS messages using Simba
    Please do not send me a PM asking for help; I will not be able to help you! Post in a relevant thread or make your own! And always remember to search first!

  3. #3
    Join Date
    Mar 2009
    Location
    Illinois
    Posts
    292
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Sorry but thanks.

  4. #4
    Join Date
    Nov 2010
    Posts
    5
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    For the record, the SCAR manual only lists the first four arguments (X1,Y1,X2,Y2). There is nothing about a fifth.

  5. #5
    Join Date
    Dec 2006
    Location
    Sweden
    Posts
    10,812
    Mentioned
    3 Post(s)
    Quoted
    16 Post(s)

    Default

    Quote Originally Posted by mastaLink View Post
    For the record, the SCAR manual only lists the first four arguments (X1,Y1,X2,Y2). There is nothing about a fifth.
    Please don't bump such an old thread

    Anyways, there is a mouseBox command in SCAR, and only in SRL. SCAR's is not safe compared to SRL's.


    Send SMS messages using Simba
    Please do not send me a PM asking for help; I will not be able to help you! Post in a relevant thread or make your own! And always remember to search first!

  6. #6
    Join Date
    Apr 2007
    Location
    Perth, Australia
    Posts
    3,926
    Mentioned
    3 Post(s)
    Quoted
    2 Post(s)

    Default

    SRL overrides SCAR's function. When you include SRL you have to use 5 params, otherwise just 4.

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
  •