Results 1 to 12 of 12

Thread: Simple question.

  1. #1
    Join Date
    Dec 2007
    Posts
    2,766
    Mentioned
    2 Post(s)
    Quoted
    37 Post(s)

    Default Simple question.

    Does MMouse's random settings both support - randomisation and + randomisation ?

  2. #2
    Join Date
    Feb 2007
    Location
    Access Violation at 0x00000000
    Posts
    2,865
    Mentioned
    3 Post(s)
    Quoted
    18 Post(s)

    Default

    Try it?
    Ce ne sont que des gueux


  3. #3
    Join Date
    Feb 2007
    Posts
    3,616
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Yes it does. All the randomizers do is add a number between 0 and the number you send. If that number is negative, then it will do +(the negative number).

  4. #4
    Join Date
    Dec 2007
    Posts
    2,766
    Mentioned
    2 Post(s)
    Quoted
    37 Post(s)

    Default

    Tried it and only did + randomizations, how would I make it do - randomizations too ?

  5. #5
    Join Date
    Feb 2007
    Location
    South East England
    Posts
    2,906
    Mentioned
    2 Post(s)
    Quoted
    8 Post(s)

    Default

    MMouse(X-20, Y-20, -3, -4)?
    Jus' Lurkin'

  6. #6
    Join Date
    Feb 2007
    Posts
    3,616
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    All MMouse does is like this:

    MoveMouse(x+random(20),y+random(20));

    but instead:

    MMouse(x,y,20,20);

    (obviously they are different, but you know what I mean).

    So just do MMouse(x-random(20),y-random(10),0,0) if you want negative randomness.

  7. #7
    Join Date
    Dec 2007
    Posts
    2,766
    Mentioned
    2 Post(s)
    Quoted
    37 Post(s)

    Default

    Basically what I want is something which would do :




    X



    The 'X' being the described point in the two first parameters.

    I would want it to go randomly in like 200 px radius around it.

  8. #8
    Join Date
    Feb 2007
    Posts
    3,616
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Dr D. Dervish View Post
    Basically what I want is something which would do :




    X



    The 'X' being the described point in the two first parameters.

    I would want it to go randomly in like 200 px radius around it.
    Oh, so make a rectangle around a point?

    MouseBox(x-200,y-200,x+200,y+200,3);

  9. #9
    Join Date
    Dec 2007
    Posts
    2,766
    Mentioned
    2 Post(s)
    Quoted
    37 Post(s)

    Default

    Zomg, forgot about MouseBox...

    Is it as safe as MMouse ?

  10. #10
    Join Date
    Feb 2007
    Posts
    3,616
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Dr D. Dervish View Post
    Zomg, forgot about MouseBox...

    Is it as safe as MMouse ?
    Yeah. I use mousebox all the time. It's the exact same thing pretty much. You could do the same thing with MMouse like this though:

    MMouse(x-200,x-200,400,400);

    That should make the same box as the one I showed you with MouseBox.

  11. #11
    Join Date
    Dec 2006
    Location
    Canada, BC
    Posts
    728
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    do you mean something like this?

    SCAR Code:
    function RanInt(magnitude : Integer) : Integer;
    var
      product : Integer;
    begin
      product := Random(magnitude+1) - Random(magnitude+1);
      if(product=0) then Result := Random(magnitude) - Random(magnitude)
      else Result := product;
    end;
    //
    MMouse(x + RanInt(200), y + RanInt(200), 0, 0); //Move the mouse to a random point within a 200x200 pixle box of the origional point
    Last edited by Lance; 06-03-2009 at 05:47 AM.
    Lance. Da. Pants.

  12. #12
    Join Date
    Dec 2007
    Location
    192.168.1.73
    Posts
    2,439
    Mentioned
    6 Post(s)
    Quoted
    119 Post(s)

    Default

    Quote Originally Posted by Dr D. Dervish View Post
    Zomg, forgot about MouseBox...

    Is it as safe as MMouse ?
    SCAR Code:
    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;

    It is a safe as Mouse, because it is Mouse

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
  •