Exemplo n.º 1
0
def move_rel_click(x, y):
    t('相对移动 点击')
    move_rel(x, y)
    time.sleep(random.random() / 20)
    km._left_button_down()
    time.sleep(random.random() / 5)
    km._left_button_up()
Exemplo n.º 2
0
def move_to_click(x, y):
    t('绝对移动 点击')
    move_to(x, y)
    time.sleep(random.random() / 21)
    km._left_button_down()
    time.sleep(random.random() / 5)
    km._left_button_up()
Exemplo n.º 3
0
def toclick(x, y):
    # t('绝对移动 带随机 点击')
    xoffset = random.randint(0, 30) - 15
    yoffset = random.randint(0, 16) - 8
    move_to(x + xoffset, y + yoffset)
    time.sleep(random.random() / 21)
    km._left_button_down()
    time.sleep(random.random() / 5)
    km._left_button_up()