基本就是每个回合点一下技能 然后回合结束 这都能被封的么?
import pyautogui
import time
import random
# 2K分辨率下炉石的位置(1392, 961) 非指向性英雄可以使用
pyautogui.PAUSE = random.uniform(0,1) # 调用在执行动作后暂停的秒数,只能在执行一些pyautogui动作后才能使用,建议用time.sleep
pyautogui.FAILSAFE = True
width, height = pyautogui.size() # 屏幕的宽度和高度
print('当前分辨率为:{},{}'.format(str(width).rjust(4), str(height).rjust(4)))
for i in range(999999):
pyautogui.click(x=random.uniform(1057,1067), y=random.uniform(766,777), duration=random.uniform(0,2)) #单击“开始”按钮
x, y = pyautogui.position()
positionStr = '鼠标坐标点(X,Y)为:{},{}'.format(str(x).rjust(4), str(y).rjust(4))
pyautogui.click(x=random.uniform(697,707), y=random.uniform(736,746), duration=random.uniform(0,2)) #失败单击后“确认”按钮
pyautogui.mouseDown(button='right') # 按下鼠标右键
#time.sleep(random.uniform(0,1))
pyautogui.mouseUp(button='right', x=random.uniform(100,400), y=random.uniform(100,400), duration=random.uniform(0,1)) # 移动到(xxxx,xxxx)位置,然后松开鼠标右键
pyautogui.mouseDown(x=601, y=696,button='right',duration=random.uniform(0,2))
pyautogui.click(x=random.uniform(838,848), y=random.uniform(709,719), duration=random.uniform(0,2)) #单击技能
import pyautogui
import time
import random
# 2K分辨率下炉石的位置(1392, 961) 非指向性英雄可以使用
pyautogui.PAUSE = random.uniform(0,1) # 调用在执行动作后暂停的秒数,只能在执行一些pyautogui动作后才能使用,建议用time.sleep
pyautogui.FAILSAFE = True
width, height = pyautogui.size() # 屏幕的宽度和高度
print('当前分辨率为:{},{}'.format(str(width).rjust(4), str(height).rjust(4)))
for i in range(999999):
pyautogui.click(x=random.uniform(1057,1067), y=random.uniform(766,777), duration=random.uniform(0,2)) #单击“开始”按钮
x, y = pyautogui.position()
positionStr = '鼠标坐标点(X,Y)为:{},{}'.format(str(x).rjust(4), str(y).rjust(4))
pyautogui.click(x=random.uniform(697,707), y=random.uniform(736,746), duration=random.uniform(0,2)) #失败单击后“确认”按钮
pyautogui.mouseDown(button='right') # 按下鼠标右键
#time.sleep(random.uniform(0,1))
pyautogui.mouseUp(button='right', x=random.uniform(100,400), y=random.uniform(100,400), duration=random.uniform(0,1)) # 移动到(xxxx,xxxx)位置,然后松开鼠标右键
pyautogui.mouseDown(x=601, y=696,button='right',duration=random.uniform(0,2))
pyautogui.click(x=random.uniform(838,848), y=random.uniform(709,719), duration=random.uniform(0,2)) #单击技能