Results 1 to 6 of 6

Thread: Mouse Box

  1. #1
    Join Date
    Dec 2007
    Posts
    44
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Mouse Box

    Any idea why MouseBox is erroring? does it have a bug? what could replace it?
    case Random(30) of
    [line 197:] 2: MouseBox(MSX1,MMY1,MMX2,MMY2,3);
    4: HoverSkill('Random', False);
    8: MouseBox(MSX1,MMY1,MMX2,MMY2,3);
    15: BoredHuman;
    20: HoverSkill('Mining', False);
    27: PerfectNorth;
    29: RandomRClick;
    end;

    Line 197: [Error] (15286:35): Type mismatch in script

  2. #2
    Join Date
    Jun 2007
    Posts
    785
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    SCAR Code:
    MouseBox(MSX1,MMY1,MMX2,MMY2,3);
    Doesn't Work.

    MS = MainScreen
    MM = Minimap

    you have to do OR
    SCAR Code:
    MouseBox(MSX1,MSY1,MSX2,MSY2,3);

    OR

    SCAR Code:
    MouseBox(MMX1,MMY1,MMX2,MMY2,3);

    This Should Work.

    [22:20] <[-jesus-]> freddy, go uninstall yourself

  3. #3
    Join Date
    Feb 2007
    Location
    @ SRL
    Posts
    402
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Nice solvin Dumpin =]

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

    Default

    Quote Originally Posted by Dumpin View Post
    SCAR Code:
    MouseBox(MSX1,MMY1,MMX2,MMY2,3);
    Doesn't Work.

    MS = MainScreen
    MM = Minimap

    you have to do OR
    SCAR Code:
    MouseBox(MSX1,MSY1,MSX2,MSY2,3);

    OR

    SCAR Code:
    MouseBox(MMX1,MMY1,MMX2,MMY2,3);

    This Should Work.
    It should work anyway. The reason you have a type mismatch error is because the last parameter of MouseBox is a boolean... whether you want to left click or not (True for left click, False for right click).

  5. #5
    Join Date
    Aug 2007
    Posts
    429
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default

    lol yes, as ZephyrsFury said,
    SCAR Code:
    procedure MouseBox(xs, ys, xe, ye: Integer; click: Boolean);
    click is a boolean not an integer.

    so it should look like
    SCAR Code:
    MouseBox(MMX1, MMY1, MMX2, MMY2, True); //or
    MouseBox(MMX1, MMY1, MMX2, MMY2, False);



  6. #6
    Join Date
    Dec 2007
    Posts
    44
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Thank you all, see I read that that was number was an integer not a boolean. But now I understand what MM and MS mean as well. Everything works now, i'm gonna try to organize a little and then post in the first script forums.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. I'm a Mouse!
    By mickeymouse in forum Who Are You ? Who ? Who ?
    Replies: 3
    Last Post: 12-12-2008, 04:21 PM
  2. [REQ] Mouse in box
    By Boreas in forum OSR Help
    Replies: 8
    Last Post: 11-20-2006, 01:50 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
  •