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.0.tar.gz (9.5 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.0-py3-none-any.whl (9.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pymousekey-1.3.0.tar.gz
  • Upload date:
  • Size: 9.5 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.0.tar.gz
Algorithm Hash digest
SHA256 f5eabbeb68ed927e9aed628a6ba0c8c6d6088a56116f43acb35e8b05f5e869b7
MD5 1aed6c0202aad3afc357202674fc0576
BLAKE2b-256 728163707cfc6981c7057f62d0960cc9faf9d0e95e97dff9ad1806c17085ad6b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pymousekey-1.3.0-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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f288ee7c980f06cab7b29ad2246b2bf6f9363fd069b42cc4ce7de99a19febdca
MD5 085014e46e5085893ba8b11cdb4f04f6
BLAKE2b-256 89d48564ce68de98b0cdf01ca9a5a26a32d51867de88895e6df4752da44c1754

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