Skip to main content

A multi-platform python package for mdapping key strokes to mouse clicks.

Project description

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

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

positionkey-1.1.2.tar.gz (6.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

positionkey-1.1.2-py3-none-any.whl (5.4 kB view details)

Uploaded Python 3

File details

Details for the file positionkey-1.1.2.tar.gz.

File metadata

  • Download URL: positionkey-1.1.2.tar.gz
  • Upload date:
  • Size: 6.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.9.18

File hashes

Hashes for positionkey-1.1.2.tar.gz
Algorithm Hash digest
SHA256 b60eadc0d6b946c4139b29e7e550f1d9f81d6e8f9e139bcb000e2c2d99c56fe7
MD5 b7757a9f38f98045453b0da269102fde
BLAKE2b-256 708367bc13c2b1f0a1677cde94a6d13534fbd38b6eb1030839751b417cbf7490

See more details on using hashes here.

File details

Details for the file positionkey-1.1.2-py3-none-any.whl.

File metadata

  • Download URL: positionkey-1.1.2-py3-none-any.whl
  • Upload date:
  • Size: 5.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.9.18

File hashes

Hashes for positionkey-1.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 1b5d583f01c917319940d58589c9c12558edf2a529cfa53af9ddd6ed4fc388a3
MD5 3f8aef62635ec8a70bdd978e6d5b600e
BLAKE2b-256 82678c5703c1a4da7306f3b92c1dba8baa81aa2c7738e5a30ee437546f3bfc58

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