Skip to main content

⌨️🖱️ 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)

Metadata

Release files for PyMouseKey 1.3.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for PyMouseKey 1.3.3
File Size Uploaded
pymousekey-1.3.3.tar.gz 9.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for PyMouseKey 1.3.3
File Interpreter ABI Platform
pymousekey-1.3.3-py3-none-any.whl Python 3 none any Details

Total release size: 19.2 kB

Release files / pymousekey-1.3.3.tar.gz

Download URL pymousekey-1.3.3.tar.gz
Size 9.6 kB
Tags Source
SHA-256 checksum
How to use checksums
f0b19b33dd1419749d6bf8ca6f1d0d70dd469adbc8c235bc8d4980426abeb3bd
BLAKE2b-256 checksum
How to use checksums
edcb90d968e5f7b7931382d813640d73608a7dd18ff401782902e32787a886f0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.0

Release files / pymousekey-1.3.3-py3-none-any.whl

Download URL pymousekey-1.3.3-py3-none-any.whl
Size 9.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7271e3545559a533785351a32c18d4e67fe9c02ae38b65e6bce621e99aeb2b97
BLAKE2b-256 checksum
How to use checksums
23ea3211cdd36354211f6736a0df8e0f9d846c55e1a54350cccc9f0551198840
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.0

Release history Release notifications | RSS feed

This release

1.3.3 This release

2 release files

1.3.2

2 release files

1.3.1

2 release files

1.3.0

2 release files

1.2.3

2 release files

1.2.2

2 release files

1.2.1

2 release files

1.1.0

2 release files

1.0.9

1 release file

1.0.8

1 release file

1.0.7

1 release file

1.0.6

1 release file

1.0.5

1 release file

1.0.4

1 release file

1.0.3

2 release files

1.0.2

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page