、mouseUp
按下按键,松开按键
scroll
向下滚动鼠标滚轮的函数
键盘操作函数
操作键盘按键的函数。...screenshot('image.png')
保存截图并返回截图,无参版本直接返回截图不保存
center('image.png')
从屏幕上寻找图片位置,返回框位置
locateOnScreen('...None, y=None, clicks=1, interval=0.0, button='left', duration=0.0, tween=pyautogui.linear)
# 鼠标相对移动 ,向下移动...(x=1796, y=778, button='left')
#鼠标移动到x=2745, y=778位置松开(与mouseDown组合使用选中)
pyautogui.mouseUp(x=2745, y...=778, button='left',duration=5)
#鼠标当前位置滚轮滚动
pyautogui.scroll()
#鼠标水平滚动(Linux)
pyautogui.hscroll()
#鼠标左右滚动