47 lines
1.4 KiB
Markdown
Raw Normal View History

2025-08-23 22:59:59 +08:00
# 按键监听一键开火工具
2025-08-23 22:41:15 +08:00
2025-08-23 22:59:59 +08:00
允许监听键盘事件进行一键开火,基于 [CGH](https://github.com/hyperzlib/DG-Lab-Coyote-Game-Hub)
## 开始使用
1. 在[版本发布](https://gitea.miri.site/Mr_Fang/cgh_keyboard_fire_tool/releases)中找到最新版本,下载文件附件中的 `Keyboard_Fire_Tool_V***.exe`
2. 启动 [Coyote-Game-Hub](https://github.com/hyperzlib/DG-Lab-Coyote-Game-Hub) 服务器(可参照 README 文档进行)
3. 在 CGH 中连接郊狼主机/客户端,获取连接码
4. 启动本工具,填写连接码并配置按键事件,开始监听即可
2025-08-26 21:59:41 +08:00
5. 可使用菜单“文件”中的“保存配置”和“读取配置”保存/读取 `.json` 格式的配置文件([示例配置文件](https://gitea.miri.site/Mr_Fang/cgh_keyboard_fire_tool/src/branch/master/example.json)
2025-08-23 22:59:59 +08:00
## 注意事项
2025-08-26 21:59:41 +08:00
**停止监听并不能完全注销热键,需要关闭整个工具,所以若有重新监听需求建议直接重新启动程序**
## 进入开发
1. 克隆本仓库到本地
```shell
git clone https://gitea.miri.site/Mr_Fang/cgh_keyboard_fire_tool.git
```
2. 初始化开发环境
```shell
pip install -r requirements.txt
```
3. 作出修改
4. 使用 PyInstaller 构建可执行文件
```shell
pyinstaller --clean --noconfirm main.spec
```
5.`./dist/` 下即可找到构建产物
## 开源许可
本工具使用 [Apache License 2.0](https://choosealicense.com/licenses/apache-2.0/) 开源许可协议