一个pythoncli工具,用于在一段时间间隔后自动按键。
pyak的Python项目详细描述
皮亚克
Python程序在一段时间后自动按键。在
pyak==py自动关键点
运行之前,请确保已安装python3,然后安装软件包:
pip install pyak
例如,在slack运行时,每15分钟按一次shift键:
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
详细用途:
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.
安全壳
- 项目
标签: