Skip to main content

No project description provided

Project description

DMT AutoGui

AutoGui is a Python library that simplifies automating graphical user interfaces (GUIs) using pyautogui, pyperclip, and other related libraries. It provides a higher-level interface for common GUI automation tasks, such as finding and clicking images, typing text, taking screenshots, and interacting with system processes. It also includes robust error handling and logging capabilities.

Features

  • Image Recognition: Locate images on the screen with configurable confidence levels and timeouts.
  • Mouse Control: Click on images or specific coordinates. Get the current mouse position.
  • Keyboard Control: Press keys and write text.
  • Screen Operations: Get screen size and take screenshots, optionally specifying a region.
  • System Interaction: Open and close programs.
  • Error Handling: Uses Model_Error objects for consistent error reporting.
  • Logging: Integrated logging with customizable levels.
  • Path Handling: Handles both relative and absolute file paths for images.

Logging

AutoGui uses Python's built-in logging module. You can provide your own logger instance or let AutoGui create one. This allows for flexible logging configuration.

Error Handling

All methods that can potentially fail return either a Model_AutoGuiResponse (on success) or a Model_Error (on failure). This makes it easy to check for errors and handle them appropriately.

File Paths

The GUIController automatically determines the directory of the calling script and uses it as the base path for finding image files. This simplifies the use of relative paths. You can also provide absolute paths.

Contributing

Contributions are welcome! Please open an issue or submit a pull request.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dmt_auto_gui-0.1.22.tar.gz (5.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dmt_auto_gui-0.1.22-py3-none-any.whl (8.9 kB view details)

Uploaded Python 3

File details

Details for the file dmt_auto_gui-0.1.22.tar.gz.

File metadata

  • Download URL: dmt_auto_gui-0.1.22.tar.gz
  • Upload date:
  • Size: 5.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.0

File hashes

Hashes for dmt_auto_gui-0.1.22.tar.gz
Algorithm Hash digest
SHA256 adf07e2829388e00f0b920ac68eb2a971c8e27d1b1af34fa11162fe20058baaf
MD5 2b6ebc2f054238047ca020ed5f745def
BLAKE2b-256 52ef53882e77cf3221ca9138fda6d2f475c7c0eefad16bf6bd7f65d61ed396d9

See more details on using hashes here.

File details

Details for the file dmt_auto_gui-0.1.22-py3-none-any.whl.

File metadata

File hashes

Hashes for dmt_auto_gui-0.1.22-py3-none-any.whl
Algorithm Hash digest
SHA256 1589ebf883cd30155ecf1d8aa44c3d185c03ab5c499a21681e5af6483bb7633a
MD5 132f49264d4377fac16c26de3beeaed1
BLAKE2b-256 cf03ad84733247cd93e21b7b1e6520570905a6e3598b3736b8c353d42972ac9e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page