1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Question Random mouse movement

Discussion in 'Developer Support' started by Omnipotence, Feb 10, 2018.

  1. Omnipotence

    Joined:
    Feb 2, 2018
    Messages:
    3
    Likes Received:
    0
    Is there a way to move the mouse to specific / random coordinates on the screen?

    The Mouse.move() function requires an Interactable as a parameter.

    All i want is to add some randomness to my bot.
    Not moving the mouse until the next action seems extremely obvious / detectable.
     
  2. Snufalufugus

    Joined:
    Aug 23, 2015
    Messages:
    1,961
    Likes Received:
    757
    Mouse.move(Screen.getPosition())

    But don't do that. Let the built-in client antiban take care of you until you're a much more experienced developer (or forever). You'll just create patterns for bot watch to pick up on "randomly" moving your mouse around.
     
  3. Omnipotence

    Joined:
    Feb 2, 2018
    Messages:
    3
    Likes Received:
    0
    Alright, thanks!

    It's nice to know that there is a built-in antiban.
    However, i don't see any random mouse movements after any interaction.
    The mouse always stays in exactly the same spot where it was clicked, until the next action is called.
    Maybe it has to be enabled manually?
    --- Double Post Merged, Feb 11, 2018, Original Post Date: Feb 10, 2018 ---
    For future reference, this seems to be the only working solution:

    Code (Text):
    1.  
    2. int x = Random.nextInt(0,800);
    3. int y = Random.nextInt(0,600);
    4. Mouse.move(Screen.getBounds().getInteractionPoint(new InteractablePoint(x,y)));
    5.  
     
  4. Derk

    Derk 12 year old normie

    Joined:
    Jan 8, 2015
    Messages:
    2,766
    Likes Received:
    1,339
    Please don't do this. You think you're creating antiban but you're just creating patterns. Think about it. You're moving your mouse every time after a successful interaction, that's a pattern right there.

    The client has a system in place called Clouse. It handles a more humanlike approach to moving the mouse and interacting with entities.
     
  5. Savior

    Savior Java Warlord

    Joined:
    Nov 17, 2014
    Messages:
    4,906
    Likes Received:
    2,748
    The Screen.getBounds part is entirely redundant, and also what @Derk said +1
     
  6. Arbiter

    Arbiter Mod Automation

    Joined:
    Jul 26, 2013
    Messages:
    2,938
    Likes Received:
    1,266
    Any bot that implements anti-bans patterns like this will/should be rejected from the Bot Store.
     
    Derk likes this.

Share This Page

Loading...