Results 1 to 4 of 4

Thread: Is this clicking code too bot-like?

  1. #1
    Join Date
    Jun 2012
    Posts
    122
    Mentioned
    0 Post(s)
    Quoted
    40 Post(s)

    Default Is this clicking code too bot-like?

    This code is meant to look for a Wall safe then click it. It finds the x, y position of the safe then calculates a random offset for those points so that I don't always click on the same spot.

    I am afraid that it might be teleporting the mouse around instead of dragging it.


    Code:
        
        // Search for a safe.
        if mainscreen.findObject(x, y, 5855585, 11, ['all safe'], MOUSE_MOVE)
        then begin
          rx :=  randomRange(-50, 10);
          ry := randomRange(-10, 50);
          mouse(x, y, rx, ry, MOUSE_LEFT);
    Is the movement human enough or is it obviously a bot? Can it be improved, if so, how?

  2. #2
    Join Date
    Jun 2007
    Location
    The land of the long white cloud.
    Posts
    3,702
    Mentioned
    261 Post(s)
    Quoted
    2006 Post(s)

    Default

    Quote Originally Posted by KLight View Post
    This code is meant to look for a Wall safe then click it. It finds the x, y position of the safe then calculates a random offset for those points so that I don't always click on the same spot.

    I am afraid that it might be teleporting the mouse around instead of dragging it.


    Code:
        
        // Search for a safe.
        if mainscreen.findObject(x, y, 5855585, 11, ['all safe'], MOUSE_MOVE)
        then begin
          rx :=  randomRange(-50, 10);
          ry := randomRange(-10, 50);
          mouse(x, y, rx, ry, MOUSE_LEFT);
    Is the movement human enough or is it obviously a bot? Can it be improved, if so, how?
    No real need for randomness on the randomness, and that is a massive range for a mouse offset. If you move it 50px to the left you'll probably miss the safe altogether.

  3. #3
    Join Date
    Jun 2012
    Posts
    122
    Mentioned
    0 Post(s)
    Quoted
    40 Post(s)

    Default

    So something like this code below would be enough randomness?

    Code:
    if mainscreen.findObject(x, y, 5855585, 11, ['all safe'], MOUSE_MOVE)
        then begin
          mouse(x, y, 5, 5, MOUSE_LEFT);
    On a related note. Would those long strings that I see in people's code, I think they are called DTMs, improve randomness on clicks?

  4. #4
    Join Date
    Jun 2007
    Location
    The land of the long white cloud.
    Posts
    3,702
    Mentioned
    261 Post(s)
    Quoted
    2006 Post(s)

    Default

    Quote Originally Posted by KLight View Post
    So something like this code below would be enough randomness?

    Code:
    if mainscreen.findObject(x, y, 5855585, 11, ['all safe'], MOUSE_MOVE)
        then begin
          mouse(x, y, 5, 5, MOUSE_LEFT);
    On a related note. Would those long strings that I see in people's code, I think they are called DTMs, improve randomness on clicks?
    Yes.

    Regarding the DTMs it would just be the same. findDTM(dtm, x, y, etc..) The Midpoint of the DTM is put into (x, y) so you would just do the same thing as you do above.

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
  •