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.6.tar.gz (28.6 kB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: PyHuTool-0.0.6.tar.gz
  • Upload date:
  • Size: 28.6 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.6.tar.gz
Algorithm Hash digest
SHA256 d0ce30e03f50f86b383ade983f0f021bd52f16a1fd9350491f1878837b56d16b
MD5 68adc62f842c03f54e31c8328251c76c
BLAKE2b-256 6f8bd3cfa7b1aba236ff17145d08f7d9951334fefa3789ed480996a2c47e2380

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