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.3.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.3-py3-none-any.whl (9.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pymousekey-1.3.3.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.3.tar.gz
Algorithm Hash digest
SHA256 f0b19b33dd1419749d6bf8ca6f1d0d70dd469adbc8c235bc8d4980426abeb3bd
MD5 7854818dc53c7f491dae5831849e55ae
BLAKE2b-256 edcb90d968e5f7b7931382d813640d73608a7dd18ff401782902e32787a886f0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pymousekey-1.3.3-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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 7271e3545559a533785351a32c18d4e67fe9c02ae38b65e6bce621e99aeb2b97
MD5 3acd975ba2e8a36e028eeffbced577db
BLAKE2b-256 23ea3211cdd36354211f6736a0df8e0f9d846c55e1a54350cccc9f0551198840

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