Skip to main content

pkj

Position Key: Relax your fingers

PositionKey is a multi-platform python package for mapping key strokes to mouse clicks.

Installation

Install with pip

PositionKey is available on PyPI as positionkey.

  1. Install PositionKey:
pip install positionkey

For positionkey for function properly, the dependencies will automatically be installed.

Local Installation

PositionKey is compatible with Linux and Windows systems. To install a local version:

  1. Run installation command from the root directory:
pip install .

Why use PositionKey?

Usage

  • Currently, there are four keys mapped: D, V, L and C which stands for Dismiss, Verify, Long and Cancel respectively. These four keystrokes can store and hit four positions on the GUI screen.
  • Say if we need to alternately click on two buttons on the computer's screen, just map the click to any two of the mentioned keys and hit the keys alternately on the keyboard as per need.
  • We can record the pixel positions of keys D, V, L, C via the numeric keys 1, 2, 3, 4 respectively. The current position of the mouse pointer will be recorded whenever the above numeric keys are pressed while the script is running.
  • The four (x, y) positions will be stored in a CSV file named 'click_positions.csv' in the current directory for resuming the same positions on succesive runs.
  • The four positions defaults to (700, 0) pixel of the screen where 700 is the X-coordinate and 0 is the Y-coordinate.
  • There is a partition function which will virtually divide the computer screen into two halves: Left and Right. The script will only run when the mouse pointer is on the left of the partition line(vertical) while won't work if the mouse pointer is on the right side of the partition line(Vertical). The partition line can be recorded by hitting the key "P" on the keyboard.

Licence

MIT Licence

Metadata

Release files for positionkey 1.1.2

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

Source distribution (sdist)

Source distribution for positionkey 1.1.2
File Size Uploaded
positionkey-1.1.2.tar.gz 6.0 kB Details

Built distribution (wheel)

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

Total release size: 11.4 kB

Release files / positionkey-1.1.2.tar.gz

Download URL positionkey-1.1.2.tar.gz
Size 6.0 kB
Tags Source
SHA-256 checksum
How to use checksums
b60eadc0d6b946c4139b29e7e550f1d9f81d6e8f9e139bcb000e2c2d99c56fe7
BLAKE2b-256 checksum
How to use checksums
708367bc13c2b1f0a1677cde94a6d13534fbd38b6eb1030839751b417cbf7490
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.9.18

Release files / positionkey-1.1.2-py3-none-any.whl

Download URL positionkey-1.1.2-py3-none-any.whl
Size 5.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1b5d583f01c917319940d58589c9c12558edf2a529cfa53af9ddd6ed4fc388a3
BLAKE2b-256 checksum
How to use checksums
82678c5703c1a4da7306f3b92c1dba8baa81aa2c7738e5a30ee437546f3bfc58
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.9.18

Release history Release notifications | RSS feed

This release

1.1.2 This release

2 release files

1.1.1

2 release files

1.1.0

2 release files

1.0.0

2 release files

0.0.2

2 release files

0.0.1

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