一个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.

安全壳

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java Cassandra docker无法通过JMX连接   java以编程方式在图片模式下启用图片   java访问json数组中的json数组   swing Java 2D API:空指针异常   java Storm 2.0.0内存不足   java为什么Splitter在Spring Integration中处理集合项时直接返回集合?   java Spring启动到Postgres数据库驱动程序问题   java如何将对象围绕其中心旋转90度?   无法返回变量。“java:找不到变量”   通过BigInteger进行Java基转换   在Java中获取日期格式   java构建具有依赖关系的jar并将其绑定到tar中。gz使用maven组装   java为什么Guice在main中从UncaughtExceptionHandler抛出$ComputeException?   spring升级到Java7时有哪些陷阱   java从JTable向数组获取值   java Android在启动新活动时会杀死多个以前的活动   postgresql是否可以在批处理过程中运行java命令?   安卓使用Java代码创建文件上传请求   java一些元素神奇地没有从ArrayList中删除