Results 1 to 8 of 8

Thread: How to change to SRL5 on rightclick?

  1. #1
    Join Date
    Dec 2011
    Posts
    1,162
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default How to change to SRL5 on rightclick?

    Hey, just noticed that my script wont right click anymore. And i know that its from the srl5 update. how do i update my script to allow it?

    Here is my procedure for finding and picking up bones.

    Simba Code:
    Function BoneFinder(Colors: TIntegerArray; TheUpText: TStringArray; midx, midy: integer): Boolean;
      Var
        T,i,X,Y: Integer;
        TPA: TPointArray;
        ATPA: Array of TPointArray;
      Begin
        MarkTime(T);
        Repeat
          SetArrayLength(ATPA, Length(Colors));
          for i := 0 to High(Colors) do
            FindColorsSpiralTolerance(midx, midy, ATPA[i], Colors[i], MSX1, MSY1, MSX2, MSY2, 5);
          TPA := MergeATPA(ATPA);
          ATPA := TPAtoATPAEx(TPA, 15, 15);
          SortATPAFrom(ATPA, Point(MSCX, MSCY));
          if (Length(ATPA) = 0) then
            Exit;

          MiddleTPAEx(ATPA[0], x, y);

          if (TimeFromMark(T) > 5000) then
            Exit;

          MMouse(x, y, 10, 10);
          Wait(randomrange(10,15));
          If(IsUpTextMultiCustom(TheUpText)) then
          begin
            ClickMouse2(False);
            WaitOption('ones', 50);
            if DidRedClick then
            begin
              Result := True;
              Break;
            end;
          end;
        Until(Result)
      end;

  2. #2
    Join Date
    Feb 2006
    Location
    Amsterdam
    Posts
    13,692
    Mentioned
    146 Post(s)
    Quoted
    130 Post(s)

    Default

    You should not use ClickMouse2. Use SRL's Mouse(). The proper arguments are here: http://docs.villavu.com/simba/script...ard.html#types



    The best way to contact me is by email, which you can find on my website: http://wizzup.org
    I also get email notifications of private messages, though.

    Simba (on Twitter | Group on Villavu | Website | Stable/Unstable releases
    Documentation | Source | Simba Bug Tracker on Github and Villavu )


    My (Blog | Website)

  3. #3
    Join Date
    May 2007
    Location
    England/Liverpool
    Posts
    1,004
    Mentioned
    9 Post(s)
    Quoted
    106 Post(s)

    Default

    change this
    Simba Code:
    ClickMouse2(False);
    to this
    Simba Code:
    ClickMouse2(Mouse_Right);

    Hmm i thought moving the MMouse with MouseClick2 after it was safe?


    I use MMouse after i find a DTM check uptext then use MouseClick2 to click it

    as to using Mouse(x,y,0,0,Mouse_Left); is there much difference.
    Last edited by Mark; 01-15-2012 at 05:04 PM.

  4. #4
    Join Date
    Dec 2011
    Posts
    1,162
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Ok,switched it up to use SRL's mouse because the Clickmouse2(mouse_right); didnt work and now it wont even right click.

  5. #5
    Join Date
    May 2007
    Location
    England/Liverpool
    Posts
    1,004
    Mentioned
    9 Post(s)
    Quoted
    106 Post(s)

    Default

    check out the link wizzup sent you
    shows you valid arguments

  6. #6
    Join Date
    Dec 2011
    Posts
    1,162
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I tried that, and it doesnt work. Just hovers over it, it wont click it.

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

    Default

    Then your uptext isn't resulting.

    -Boom

  8. #8
    Join Date
    Dec 2011
    Posts
    1,162
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I found out that the error is in my Chooseoption('ones');

    But still dont know how to fix it.
    Last edited by laakerules; 01-15-2012 at 06:00 PM.

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
  •