Henggao’s HomePage
Henggao’s HomePage
/
Python
Python
/
Python App2:Windows程序控制
Python App2:Windows程序控制
Search
Python App2:Windows程序控制

Python App2:Windows程序控制

 
准备分析图像思路Pyautogui使用
 

准备

  • pywin32
  • autopy
  • pyautogui
  • 需要安装autopy和PIL以及pywin32包。
 

分析图像

  • PIL
  • YOLOv3
  • OpenCV

思路

  1. 画面抓取,获取画面位置
  1. 鼠标键盘操作
 

Pyautogui使用

 
 
使用Python控制鼠标、键盘和自动化操作 - closer的自留地
沧海横流,尽显英雄本色;激浊扬清,正是猛士当时
使用Python控制鼠标、键盘和自动化操作 - closer的自留地
https://blog.zsaa.top/2021/11/23/%E8%AF%BB%E4%B9%A6%E7%AC%94%E8%AE%B0/python/%E4%BD%BF%E7%94%A8python%E6%8E%A7%E5%88%B6%E9%BC%A0%E6%A0%87%E3%80%81%E9%94%AE%E7%9B%98%E5%92%8C%E8%87%AA%E5%8A%A8%E5%8C%96%E6%93%8D%E4%BD%9C/
Welcome to PyAutoGUI's documentation! - PyAutoGUI documentation
PyAutoGUI lets your Python scripts control the mouse and keyboard to automate interactions with other applications. The API is designed to be simple. PyAutoGUI works on Windows, macOS, and Linux, and runs on Python 2 and 3. To install with pip, run pip install pyautogui . See the Installation page for more details.
Welcome to PyAutoGUI's documentation! - PyAutoGUI documentation
https://pyautogui.readthedocs.io/en/latest/
Welcome to PyAutoGUI's documentation! - PyAutoGUI documentation
 
Copyright 2022 Henggao Geng