Results 1 to 16 of 16

Thread: RandomRClickEx ~ AntiBan.scar

  1. #1
    Join Date
    May 2007
    Location
    England
    Posts
    4,141
    Mentioned
    11 Post(s)
    Quoted
    266 Post(s)

    Default RandomRClickEx ~ AntiBan.scar

    Quite simple. Right clicks the mouse on a random area of the screen, then either chooses "Examine", or "Cancel".
    SCAR Code:
    {*******************************************************************************
    procedure RandomRClickEx;
    By: R1ch
    Description: Performs random right, then examines or cancels.
    *******************************************************************************}


    procedure RandomRClickEx;
    var
      X, Y, MS : Integer;
     
    begin
      if not LoggedIn then Exit;
      MS:= MouseSpeed;
      MouseSpeed:= 8 + Random(5);
      case Random(8) of
        0, 4..7 : MouseBox(MSX1, MSY1, MSX2, MSY2, 2);
        1 : MouseBox(MIX1, MIY1, MIX2, MIY2, 2);
        2 : MouseBox(MCX1, MCY1, MCX2, MCY2, 2);
        3 : MouseBox(MMX1, MMY1, MMX2, MMY2, 2);
      end;
      Wait(Random(1500) + (Random(750)));
      repeat
        if OptionExist('xamine', False) then
        begin
          ChooseOption('xamine');
          Break;
        end else  
          ChooseOption('ancel');
      until(True);        
      MouseSpeed:= MS;
    end;

    Richard

    EDIT: Changed it so that if there is Examine, it will click it, and if there is not, it will Cancel.
    Last edited by Rich; 06-28-2009 at 09:03 PM.
    <3

    Quote Originally Posted by Eminem
    I don't care if you're black, white, straight, bisexual, gay, lesbian, short, tall, fat, skinny, rich or poor. If you're nice to me, I'll be nice to you. Simple as that.

  2. #2
    Join Date
    May 2007
    Location
    UK
    Posts
    4,007
    Mentioned
    1 Post(s)
    Quoted
    12 Post(s)

    Default

    Cool but maybe RandomRClickEx(Click : Boolean?);
    So they can choose what to click?

    T~M

  3. #3
    Join Date
    May 2007
    Location
    England
    Posts
    4,141
    Mentioned
    11 Post(s)
    Quoted
    266 Post(s)

    Default

    I did that at first, but then thought it to be a bit pointless really. I'll see what others think, then decide whether to add it or not.
    <3

    Quote Originally Posted by Eminem
    I don't care if you're black, white, straight, bisexual, gay, lesbian, short, tall, fat, skinny, rich or poor. If you're nice to me, I'll be nice to you. Simple as that.

  4. #4
    Join Date
    Mar 2007
    Posts
    4,810
    Mentioned
    3 Post(s)
    Quoted
    3 Post(s)

    Default

    SCAR Code:
    case Random(8) of
        0, 4..7 : MouseBox(MSX1, MSY1, MSX2, MSY2, 2);
        1 : MouseBox(MIX1, MIY1, MIX2, MIY2, 2);
        2 : MouseBox(MCX1, MCY1, MCX2, MCY2, 2);
        3 : MouseBox(MMX1, MMY1, MMX2, MMY2, 2);
      end;

    EDIT: There is already one which does this, its called BoredHuman.
    Last edited by Naum; 06-27-2009 at 06:31 PM.

  5. #5
    Join Date
    Mar 2008
    Location
    ::1
    Posts
    915
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    Quote Originally Posted by NaumanAkhlaQ View Post
    SCAR Code:
    case Random(8) of
        0, 4..7 : MouseBox(MSX1, MSY1, MSX2, MSY2, 2);
        1 : MouseBox(MIX1, MIY1, MIX2, MIY2, 2);
        2 : MouseBox(MCX1, MCY1, MCX2, MCY2, 2);
        3 : MouseBox(MMX1, MMY1, MMX2, MMY2, 2);
      end;

    EDIT: There is already one which does this, its called BoredHuman.
    I was going to say, I thought I saw this somewhere.

    Records and Types Save Code (and make you look better)
    Quote Originally Posted by Wizzup? View Post
    Is it possible to make Runescape a 2D game with this?... That would greatly simplify... Just about anything.

  6. #6
    Join Date
    May 2007
    Location
    England
    Posts
    4,141
    Mentioned
    11 Post(s)
    Quoted
    266 Post(s)

    Default

    Ignoring the fact that this is like BoredHuman, would anyone use this?
    <3

    Quote Originally Posted by Eminem
    I don't care if you're black, white, straight, bisexual, gay, lesbian, short, tall, fat, skinny, rich or poor. If you're nice to me, I'll be nice to you. Simple as that.

  7. #7
    Join Date
    Jan 2007
    Posts
    8,876
    Mentioned
    123 Post(s)
    Quoted
    327 Post(s)

    Default

    SCAR Code:
    procedure RandomRClickEx;
    var
      X, Y, MS : Integer;

    begin
      if not LoggedIn then Exit;
      MS:= MouseSpeed;
      MouseSpeed:= 8 + Random(5);
      ActivateClient;
      case Random(8) of
        0, 4..7 : MouseBox(MSX1, MSY1, MSX2, MSY2, 2);
        1 : MouseBox(MIX1, MIY1, MIX2, MIY2, 2);
        2 : MouseBox(MCX1, MCY1, MCX2, MCY2, 2);
        3 : MouseBox(MMX1, MMY1, MMX2, MMY2, 2);
      end;
      Wait(Random(1500) + (Random(750)));
      repeat
        if ChooseOption('xamine') then
          Break;
        ChooseOption('ancel');
      until(True)
      MouseSpeed:= MS;
    end;
    Fixed it, as you had it now it would not reset MouseSpeed after clicking Examine
    Notice the until(True) that means it will run this only once, but you can still use Break;

  8. #8
    Join Date
    May 2007
    Location
    England
    Posts
    4,141
    Mentioned
    11 Post(s)
    Quoted
    266 Post(s)

    Default

    Ooh, thanks Zytex. Would you consider using this?
    <3

    Quote Originally Posted by Eminem
    I don't care if you're black, white, straight, bisexual, gay, lesbian, short, tall, fat, skinny, rich or poor. If you're nice to me, I'll be nice to you. Simple as that.

  9. #9
    Join Date
    Jan 2007
    Posts
    8,876
    Mentioned
    123 Post(s)
    Quoted
    327 Post(s)

    Default

    Quote Originally Posted by R1ch View Post
    Ooh, thanks Zytex. Would you consider using this?
    If there were no BoredHuman then yes of course I would, but not now since there is one...
    Are there any differences between this and BoredHuman?

  10. #10
    Join Date
    Mar 2007
    Posts
    4,810
    Mentioned
    3 Post(s)
    Quoted
    3 Post(s)

    Default

    R1ch, I would rather you wouldn't use ActivateClient in it. This is because if your using SMART then it mucks up the focus. This results in Handle errors.

  11. #11
    Join Date
    Jan 2007
    Posts
    8,876
    Mentioned
    123 Post(s)
    Quoted
    327 Post(s)

    Default

    Quote Originally Posted by NaumanAkhlaQ View Post
    R1ch, I would rather you wouldn't use ActivateClient in it. This is because if your using SMART then it mucks up the focus. This results in Handle errors.
    Taken from SMART.scar in misc folder:
    SCAR Code:
    procedure ActivateClient;
    begin
    end;


    But yeah, remove the ActivateClient;

  12. #12
    Join Date
    Nov 2006
    Posts
    2,369
    Mentioned
    4 Post(s)
    Quoted
    78 Post(s)

    Default

    You should make OptionExists function to get this working becouse ChooseOption moves the mouse out of the option box if it results false :/
    Quote Originally Posted by DeSnob View Post
    ETA's don't exist in SRL like they did in other communities. Want a faster update? Help out with updating, otherwise just gotta wait it out.

  13. #13
    Join Date
    Mar 2007
    Posts
    4,810
    Mentioned
    3 Post(s)
    Quoted
    3 Post(s)

    Default

    Quote Originally Posted by Zyt3x View Post
    Taken from SMART.scar in misc folder:
    SCAR Code:
    procedure ActivateClient;
    begin
    end;


    But yeah, remove the ActivateClient;
    Exactly, it doesn't do anything

  14. #14
    Join Date
    Dec 2008
    Posts
    2,813
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I think he's saying that it won't mess it up if he has it

  15. #15
    Join Date
    Mar 2007
    Posts
    4,810
    Mentioned
    3 Post(s)
    Quoted
    3 Post(s)

    Default

    I think he's saying that it won't mess it up if he has it
    But it's still a waste of a line, no?

  16. #16
    Join Date
    May 2007
    Location
    England
    Posts
    4,141
    Mentioned
    11 Post(s)
    Quoted
    266 Post(s)

    Default

    Removed ActivateClient.
    Added OptionExist.
    Added the repeat loop.

    Richard.
    <3

    Quote Originally Posted by Eminem
    I don't care if you're black, white, straight, bisexual, gay, lesbian, short, tall, fat, skinny, rich or poor. If you're nice to me, I'll be nice to you. Simple as that.

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
  •