Skip to main content

A python package for handling keyboard and mouse inputs

Project description

⌨️🖱️ Pymousekey

A python package for handling keyboard and mouse inputs


📖 Description

Pymousekey offers a range of functions to interact with the operating system by sending various mouse and keyboard inputs, making it useful for automation, testing, and scripting repetitive tasks.


🧩 Requirements

  • Python 3.8+ (may work on earlier Python 3 versions)
  • Windows operating system

⚙️ Installation

pip install pymousekey

🚀 Example Usage

import pymousekey

# Left click at a position
pymousekey.click(255, 720, button='left')

# Right click at a position
pymousekey.click(255, 720, button='right')

# Left click at multiple locations without delay
pymousekey.click(0, 500, _pause=False)
pymousekey.click(800, 200, _pause=False)
pymousekey.click(300, 900, _pause=False)

# Add a global hotkey
pymousekey.add_hotkey("numpad 5")

# Press a key
pymousekey.press("a")

# Scroll up 1 notch
pymousekey.scroll(-1)

# Scroll down 1 notch
pymousekey.scroll(1)

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

pymousekey-1.3.1.tar.gz (9.6 kB view details)

Uploaded Source

Built Distribution

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

pymousekey-1.3.1-py3-none-any.whl (9.6 kB view details)

Uploaded Python 3

File details

Details for the file pymousekey-1.3.1.tar.gz.

File metadata

  • Download URL: pymousekey-1.3.1.tar.gz
  • Upload date:
  • Size: 9.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.0

File hashes

Hashes for pymousekey-1.3.1.tar.gz
Algorithm Hash digest
SHA256 ffbed5805e763e6d62bea02b18ba3154cf72baf8e7603970df6f8e057f083632
MD5 19d48f07a49f0c9d232ea899c7046844
BLAKE2b-256 72ffa418898caa3abe2e793801c6be5f5f53b0a48d85c377ae787472a3bc4d32

See more details on using hashes here.

File details

Details for the file pymousekey-1.3.1-py3-none-any.whl.

File metadata

  • Download URL: pymousekey-1.3.1-py3-none-any.whl
  • Upload date:
  • Size: 9.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.0

File hashes

Hashes for pymousekey-1.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 61cf68132ec5ad08e470af60f71b250586438b5862c4dc028aac1d316bf81a30
MD5 bb4afae51fa64704ebdccac4fb11c1a3
BLAKE2b-256 8928a04dbc6c1e07295452ebd58406447e20a4ea64bd542aac5c63d8c03e6536

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