code.py
def wiggle(mouse):
    """ Wiggles the `mouse` around.

    Makes `MOVES_PER_WIGGLE` moves, going at most `MAX_WIGGLE_DISTANCE`
    in either direction horizontally and vertically.

    In testing, the wigging was annoying since it would jump the cursor
    away from the path I had it on, so there's an extra final move back 
    towards the original coordinates.
    """

    print("wiggle!")

    # This code doesn't seem to reliably work, but I can't figure out
    # why. It helps make the wiggles stay closer to the same point
    # though, so I'm leaving it in.
    dx = 0
    dy = 0

    for _ in range(MOVES_PER_WIGGLE):
        x = random.randint(-MAX_WIGGLE_DISTANCE, MAX_WIGGLE_DISTANCE)
        y = random.randint(-MAX_WIGGLE_DISTANCE, MAX_WIGGLE_DISTANCE)
        dx -= x
        dy -= y
        mouse.move(x=x, y=y)

    # Move the mouse back to the starting position.
    mouse.move(x=dx, y=dy)
 Wiggles the `mouse` around.

    Makes `MOVES_PER_WIGGLE` moves, going at most `MAX_WIGGLE_DISTANCE`
    in either direction horizontally and vertically.

    In testing, the wigging was annoying since it would jump the cursor
    away from the path I had it on, so there's an extra final move back 
    towards the original coordinates.
    
Wiggles the `mouse` around.
Makes `MOVES_PER_WIGGLE` moves, going at most `MAX_WIGGLE_DISTANCE`
in either direction horizontally and vertically.

In testing, the wigging was annoying since it would jump the cursor
away from the path I had it on, so there's an extra final move back
towards the original coordinates.
Wiggles the ` mouse ` around . Makes ` MOVES_PER_WIGGLE ` moves going at most ` MAX_WIGGLE_DISTANCE ` in either direction horizontally and vertically . In testing the wigging was annoying since it would jump the cursor away from the path I had it on so there ' s an extra final move back towards the original coordinates .
def wiggle(mouse):
    print("wiggle!")
    dx = 0
    dy = 0
    for _ in range(MOVES_PER_WIGGLE):
        x = random.randint(-MAX_WIGGLE_DISTANCE, MAX_WIGGLE_DISTANCE)
        y = random.randint(-MAX_WIGGLE_DISTANCE, MAX_WIGGLE_DISTANCE)
        dx -= x
        dy -= y
        mouse.move(x=x, y=y)
    mouse.move(x=dx, y=dy)
def wiggle ( mouse ) : print ( "wiggle!" ) dx = 0 dy = 0 for _ in range ( MOVES_PER_WIGGLE ) : x = random . randint ( - MAX_WIGGLE_DISTANCE , MAX_WIGGLE_DISTANCE ) y = random . randint ( - MAX_WIGGLE_DISTANCE , MAX_WIGGLE_DISTANCE ) dx -= x dy -= y mouse . move ( x = x , y = y ) mouse . move ( x = dx , y = dy )
Wiggles the `mouse` around.
Wiggles the ` mouse ` around .
""" Wiggles the `mouse` around.

    Makes `MOVES_PER_WIGGLE` moves, going at most `MAX_WIGGLE_DISTANCE`
    in either direction horizontally and vertically.

    In testing, the wigging was annoying since it would jump the cursor
    away from the path I had it on, so there's an extra final move back 
    towards the original coordinates.
    """ # This code doesn't seem to reliably work, but I can't figure out # why. It helps make the wiggles stay closer to the same point # though, so I'm leaving it in. # Move the mouse back to the starting position.
mouse