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()
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()
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()