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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pymousekey-1.3.2.tar.gz.
File metadata
- Download URL: pymousekey-1.3.2.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
39a737792483a64d254f3bcd0c3041302318b87124dc96a723e682e75c7582c5
|
|
| MD5 |
1d9f34eefd7bd59cbd91fd1e7844a494
|
|
| BLAKE2b-256 |
dfe889d296070374789a050888fba5556703132eb7d484fc5f7d0fa60214f4b9
|
File details
Details for the file pymousekey-1.3.2-py3-none-any.whl.
File metadata
- Download URL: pymousekey-1.3.2-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4824f691bb32e1228915477a3852c8ae9a990581c92f6a52f43ca959d3c92463
|
|
| MD5 |
46c43b52ab538926f7aa7580bf995e1c
|
|
| BLAKE2b-256 |
9ba40f532643de214d6f68760bbbf6f7eee3e1a1c7773697140702bbdacc5d37
|