Results 1 to 10 of 10

Thread: MouseCircle help

  1. #1
    Join Date
    Dec 2011
    Location
    The Netherlands
    Posts
    1,631
    Mentioned
    47 Post(s)
    Quoted
    254 Post(s)

    Default MouseCircle help

    Hi

    I'm looking to figure out how to use MouseCircle. I want to click on the summoning icon.



    MouseCircle(MidX, MidY, Radius, clicktype: integer);

    MidX, MidY looks like the middle coords of the circle to me. In my case, that's (706, 143). Clicktype is leftclick so that's 1.

    -->

    MouseCircle(706, 143, Radius, 1);

    I've tried a couple different Radiusses but it hasn't been close to the MidX, MidY points yet. Can anyone explain how to use MouseCircle?

    Thanks in advance

    Script source code available here: Github

  2. #2
    Join Date
    Feb 2012
    Posts
    25
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    circle mouse creates a circle around the midx & midy then clicks randomly within that circle

    the summon circle is small, so u want your radius to reflect that

    you probably want your radius to be 8-10

  3. #3
    Join Date
    Dec 2011
    Location
    The Netherlands
    Posts
    1,631
    Mentioned
    47 Post(s)
    Quoted
    254 Post(s)

    Default

    Quote Originally Posted by Velvet Glam View Post
    circle mouse creates a circle around the midx & midy then clicks randomly within that circle

    the summon circle is small, so u want your radius to reflect that

    you probably want your radius to be 8-10
    I've even tried a "circle" as small as a radius of 1 and it still doesn't click near the summoning symbol.

    Script source code available here: Github

  4. #4
    Join Date
    Feb 2012
    Posts
    25
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by RuneScapeJJ View Post
    I've even tried a "circle" as small as a radius of 1 and it still doesn't click near the summoning symbol.
    It may be broken inside the SRL include, for now you can use:

    Mouse(RandomRange(StartX, EndX), RandomRange(StartY, EndY), 0, 0, True);

    or

    Mouse(X, Y, 10, 10, True); <------X & Y will be the top of the summoning bounds

    that will click randomly inside a square box inside the summoning symbol..

  5. #5
    Join Date
    Dec 2011
    Location
    Kosovo
    Posts
    831
    Mentioned
    0 Post(s)
    Quoted
    6 Post(s)

    Default

    You can use coordinates to click and use bitmap to click that too.
    Goals:
    Understanding TPAs
    Making Proggy for fighting
    Getting on SRL members
    Get 500 posts

  6. #6
    Join Date
    Dec 2011
    Location
    The Netherlands
    Posts
    1,631
    Mentioned
    47 Post(s)
    Quoted
    254 Post(s)

    Default

    Quote Originally Posted by Velvet Glam View Post
    It may be broken inside the SRL include, for now you can use:

    Mouse(RandomRange(StartX, EndX), RandomRange(StartY, EndY), 0, 0, True);

    or

    Mouse(X, Y, 10, 10, True); <------X & Y will be the top of the summoning bounds

    that will click randomly inside a square box inside the summoning symbol..
    There is a funtion for that already called MouseBox. I've implemented MouseBox already to click on some parts of the summoning icon but I want to cover everything of the summoning icon. So I need a circle(MouseCircle) and a rectangle(MouseBox) to cover the whole summoning icon. It should be possible but I just don't know how MouseCircle works yet - or it's broken.

    Quote Originally Posted by begginer View Post
    You can use coordinates to click and use bitmap to click that too.
    Yeah I can click on the symbol already by using MouseBox I can cover 90% of the summoning icon range where you can click. But I want to cover the other 10% aswell for increased random clicking.

    Script source code available here: Github

  7. #7
    Join Date
    Dec 2011
    Location
    New York, USA
    Posts
    1,242
    Mentioned
    12 Post(s)
    Quoted
    193 Post(s)

    Default

    I can't tell if you've fixed your issue so sorry if this is worthless.

    I tried using MouseCircle a while ago, it doesn't work. Just use something like Mouse(x, y, 7, 7, true) and it will work the same way as long as x and y are the coorinates of the center of the circle. I think I'll submit a fix to mouse circle.

    Edit: I just realized that wouldn't work lol. That would make a box instead of a circle. Hang on I'll come up with something.

  8. #8
    Join Date
    Dec 2011
    Location
    The Netherlands
    Posts
    1,631
    Mentioned
    47 Post(s)
    Quoted
    254 Post(s)

    Default

    Quote Originally Posted by Nebula View Post
    I can't tell if you've fixed your issue so sorry if this is worthless.

    I tried using MouseCircle a while ago, it doesn't work. Just use something like Mouse(x, y, 7, 7, true) and it will work the same way as long as x and y are the coorinates of the center of the circle. I think I'll submit a fix to mouse circle.

    Edit: I just realized that wouldn't work lol. That would make a box instead of a circle. Hang on I'll come up with something.
    Yeah I've already made a MouseBox that covers around 80-90% of the Clickable part of the summoning icon. However, there is still a small part left out which is the top and bottom part of the circle. The only way to add this is by a MouseCircle I think. Would be great if you could submit a fix. Good to know it's not my fault :P

    Script source code available here: Github

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

    Default

    Was an easy fix.
    Use this:
    Simba Code:
    (*
    MouseCircle
    ~~~~~~~~~~~

    .. code-block:: pascal

        procedure MouseCircle(MidX, MidY, Radius, clickType: Integer);

    Same as MouseOval, but clicks within a circle instead.

    .. note::

        by mixster

    Example:

    .. code-block:: pascal

    *)

    procedure MouseCircle(MidX, MidY, Radius, clickType: Integer);
    begin
      MouseOval(MidX - Radius, MidY - Radius, Radius, Radius, clickType);
    end;

  10. #10
    Join Date
    Dec 2011
    Location
    The Netherlands
    Posts
    1,631
    Mentioned
    47 Post(s)
    Quoted
    254 Post(s)

    Default

    Thanks Zyt3x, it does nearly work now.

    Simple test.
    Simba Code:
    program Test;
    {$i srl/srl.simba}

    procedure Test;
    begin
      MouseCircle(706, 143, 8, 1);
    end;


    begin
      SetUpSRL;
      ActivateClient;
      Test;
    end.
    It does click within the circle, but it will always click on the left side of the MidX & MidY coords.

    Script source code available here: Github

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
  •