A Python cli tools to automically press a key after some time interval.
Project description
pyak
Python program to automically press a key after some time interval.
pyak == py auto key
Before you run make sure you have python3 installed, and then install the package:
pip install pyak
example to press shift key every 15 minutes during work hour when slack is running:
pyak 900 -k shift -t 8:00 17:00 -p slack
Note: For macos you may need to allow the terminal to control your keyboard by going to System Preferences -> Security & Privacy -> Privacy -> Accessibility and make sure terminal (or whatever console you are running it from) is selected
Detailed useage:
usage: auto_key.py [-h] [-k [KEY]] [-t START END] [-p [PROCESS]] [SECONDS]
Auto key presser
positional arguments:
SECONDS Interval between each key press in seconds.
optional arguments:
-h, --help show this help message and exit
-k [KEY], --key [KEY]
Key to press, i.e. shift, f1. Defaults to shift key if
not provided
-t START END, --time_active START END
If provided, the key will only be pressed during the
specified time. i.e -t 8:00 17:00
-p [PROCESS], --process [PROCESS]
Name or regex of running process to trigger the key press.
安心摸鱼
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 pyak-0.0.3.tar.gz.
File metadata
- Download URL: pyak-0.0.3.tar.gz
- Upload date:
- Size: 3.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/47.3.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.7.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8e17689cce58527f3d031bae0a3edaf64375f1426182e2e436d5fe5be0662267
|
|
| MD5 |
1f14208b986cb55f55a6b377b99280e1
|
|
| BLAKE2b-256 |
4976287dec753e00a4a59bf3d215a299226498c9b57967f36b37e2820ab1184f
|
File details
Details for the file pyak-0.0.3-py3-none-any.whl.
File metadata
- Download URL: pyak-0.0.3-py3-none-any.whl
- Upload date:
- Size: 4.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/47.3.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.7.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
eea75082694c04d2741c9bc79febbabb15f3c922b538299b7a4ab11db09de7f8
|
|
| MD5 |
234a67566c986941d9052d230f002d5b
|
|
| BLAKE2b-256 |
cfcbb0d09c121a138e4aec77f8f074fc1c198b261a9557ec7e891fd44ca9b7e2
|