Simple python library useful for automating tasks using images.
Project description
Gui automation
Simple python library useful for automating tasks using images.
It uses OpenCV and PyAutoGui. Made with Python 3.7.
- Little example:
import cv2
from gui_automation import GuiAuto
tpl = cv2.imread("win10key.png")
GuiAuto(tpl, 0.8).detect_and_click()
It searches windows 10 key image in the screen with at least a 80% of coincidence. If it is found it gets clicked (opens windows 10 start menu).
- Brief show of available methods:
detect()
detect_and_move()
detect_and_click(clicks)
detect_and_hold(time)
detect_and_drag(start_x_fraction, start_y_fraction, end_x_fraction, end_y_fraction)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
File details
Details for the file gui_automation-2-py3-none-any.whl
.
File metadata
- Download URL: gui_automation-2-py3-none-any.whl
- Upload date:
- Size: 6.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1dda1f39b008011997d07109660ced2bd748d3b3ed88fd5944499d3c2e50ce77 |
|
MD5 | 776f1c6d8e615a373e7637f6893a464a |
|
BLAKE2b-256 | 271bdf6266dfab11f20c7b8f24f4bcb564eaa43aa9af357993fb5828083018cc |