当前位置: 首页>>代码示例>>Python>>正文


Python Mouse.rightClickAtP方法代码示例

本文整理汇总了Python中Mouse.rightClickAtP方法的典型用法代码示例。如果您正苦于以下问题:Python Mouse.rightClickAtP方法的具体用法?Python Mouse.rightClickAtP怎么用?Python Mouse.rightClickAtP使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Mouse的用法示例。


在下文中一共展示了Mouse.rightClickAtP方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: _launch

# 需要导入模块: import Mouse [as 别名]
# 或者: from Mouse import rightClickAtP [as 别名]
def _launch(group):

	result = None
	while not result:
		mouse.moveToP(panel.center(panel.Drones))
		mouse.wheel(100)
		mouse.moveToP(panel.center(panel.Full))
		result = findAtDrones('bay')

	if group == None:
		mouse.rightClickAtP(result)
	else:
		if not findAtDrones(group):
			mouse.leftClickAtP(result)
		result = findAtDrones(group)
		while not result:
			time.sleep(0.5)
			result = findAtDrones(group)
		mouse.rightClickAtP(result)

	result = findAtDrones('launch_drones')
	while not result:
		time.sleep(0.5)
		result = findAtDrones('launch_drones')
	mouse.leftClickAtP(result)

	print 'wait until drones launching..'
	mouse.moveToP(panel.center(panel.Full))
	# time.sleep(5)
	while not findAtDrones('idle') and not findAtDrones('fighting') and not findAtDrones('returning'):
		mouse.moveToP(panel.center(panel.Drones))
		mouse.wheel(-100)
		mouse.moveToP(panel.center(panel.Full))
		if not findAtDrones('idle') and not findAtDrones('fighting') and not findAtDrones('returning'):
			result = findAtDrones('local_space')
			if result:
				mouse.leftClickAtP(result)
				mouse.wheel(-100)
				mouse.leftClickAt(result[0], result[1] + 20)

	return True
开发者ID:kidsang,项目名称:EVE-Script-2,代码行数:43,代码来源:Drones.py

示例2: activateShip

# 需要导入模块: import Mouse [as 别名]
# 或者: from Mouse import rightClickAtP [as 别名]
def activateShip(ship):
	print '--> activate ship "' + ship + '"'

	key.pressEx(sc.ShipHangar)
	time.sleep(3)

	result = None
	while not result:
		time.sleep(0.5)
		result = findAtInventory(ship)
	mouse.rightClickAtP(result)
	mouse.moveTo(result[0] + 200, result[1])

	result = findAtInventory('make_active')
	if result:
		mouse.leftClickAtP(result)

	key.pressEx(sc.ShipHangar)
	time.sleep(2)

	print '<-- activate ship "' + ship + '"\n'
	return True
开发者ID:kidsang,项目名称:EVE-Script-2,代码行数:24,代码来源:Station.py


注:本文中的Mouse.rightClickAtP方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。