1 Star 0 Fork 1

qixie/python-test01

forked from huangwenjun/python-test01 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
test01-printChromePoint.py 427 Bytes
一键复制 编辑 原始数据 按行查看 历史
huangwenjun 提交于 2021-11-30 10:32 . 1、增加pyautogui截图
import pyautogui
def printPoint():
# 打印鼠标位置.
currentMouseX, currentMouseY = pyautogui.position();
print("当前鼠标位置:", currentMouseX, currentMouseY);
# 打印chrome图片位置.
location = pyautogui.locateCenterOnScreen("chrome.png", confidence=0.9);
if location is not None:
print("chrome位置:",location.x, location.y);
if __name__ == '__main__':
printPoint();
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/qixie1/python-test01.git
git@gitee.com:qixie1/python-test01.git
qixie1
python-test01
python-test01
master

搜索帮助