本文整理汇总了Python中Mouse.click_pos方法的典型用法代码示例。如果您正苦于以下问题:Python Mouse.click_pos方法的具体用法?Python Mouse.click_pos怎么用?Python Mouse.click_pos使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Mouse
的用法示例。
在下文中一共展示了Mouse.click_pos方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: finish
# 需要导入模块: import Mouse [as 别名]
# 或者: from Mouse import click_pos [as 别名]
def finish():
Mouse.click_pos(Coords.MAT)
time.sleep(1.25)
示例2: start_game
# 需要导入模块: import Mouse [as 别名]
# 或者: from Mouse import click_pos [as 别名]
def start_game():
Mouse.click_pos(Coords.START_PLAY)
Mouse.click_pos(Coords.START_CONTINUE)
Mouse.click_pos(Coords.START_SKIP)
Mouse.click_pos(Coords.START_CONTINUE)
示例3: add_ingredient
# 需要导入模块: import Mouse [as 别名]
# 或者: from Mouse import click_pos [as 别名]
def add_ingredient(ingredient):
Inventory.stock[ingredient]['amount'] -= 1
Mouse.click_pos(Coords.FOOD[ingredient])
示例4: order_ingredient
# 需要导入模块: import Mouse [as 别名]
# 或者: from Mouse import click_pos [as 别名]
def order_ingredient(ingredient):
Mouse.click_pos(Coords.PHONE)
if ingredient == 'rice':
Mouse.click_pos(Coords.PHONE_RICE)
if can_order_ingredient(ingredient):
Mouse.click_pos(Coords.PHONE_RICE_ORDER)
Mouse.click_pos(Coords.PHONE_ORDER_CONFIRM_FREE)
stock[ingredient]['timeout'] = time.time()
else:
Mouse.click_pos(Coords.PHONE_RICE_SAKE_CANCEL)
else:
Mouse.click_pos(Coords.PHONE_TOPPING)
if can_order_ingredient(ingredient):
Mouse.click_pos(Coords.PHONE_TOPPINGS[ingredient])
Mouse.click_pos(Coords.PHONE_ORDER_CONFIRM_FREE)
stock[ingredient]['timeout'] = time.time()
else:
Mouse.click_pos(Coords.PHONE_TOPPINGS_CANCEL)