📜  python 点击屏幕 - Python 代码示例

📅  最后修改于: 2022-03-11 14:47:12.997000             🧑  作者: Mango

代码示例4
import pyautogui as pg
clk= pg.locateOnScreen('click.png', confidence=0.9)
pg.click(x=clk.left+int(clk.width/2), y=clk.top+int(clk.height/2))