Skip to main content

PyHuTool lets Python control the mouse and keyboard, and other GUI automation tasks. For Windows, macOS, and Linux

Project description

PyHuTool

Python版HuTool

Setup

pip install pyhutool

Example Usage

Keyboard and Mouse Control

from pyhutool import Mouse
from pyhutool import Keybord
from pyhutool import Screenshot
from pyhutool import QRCode

# Mouse.click(500, 500)
# size = Mouse.size()
# position = Mouse.position()
# Mouse.leftClick(500, 500)

# Keybord.keyDown('h')
# Keybord.keyUp('h')
# Keybord.hotkey('ctrl', 'c')
# Keybord.press('h')
# Keybord.typewrite('hello world')

Screenshot Functions

# Screenshot.screenshot('test.png')
# locate = Screenshot.locateOnScreen('img_1.png')

QR Code

# QRCode.createQrcode('test', 'qrcode.png')

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

PyHuTool-0.0.5.tar.gz (21.5 kB view details)

Uploaded Source

File details

Details for the file PyHuTool-0.0.5.tar.gz.

File metadata

  • Download URL: PyHuTool-0.0.5.tar.gz
  • Upload date:
  • Size: 21.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.5

File hashes

Hashes for PyHuTool-0.0.5.tar.gz
Algorithm Hash digest
SHA256 c3ffa971afefb4d6b861d2ba715b93098a21c9e0ea6d736bb7d6eed39154b394
MD5 cf862edccba3c24e00c82f4e163a2bc9
BLAKE2b-256 e03ca2ddff293860771e6763157e96b3306631d838d12a3016a0930b53770c1b

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