2025-08-26 22:33:45 +08:00

47 lines
1.5 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 按键监听一键开火工具
允许监听键盘事件进行一键开火,基于 [CGH](https://github.com/hyperzlib/DG-Lab-Coyote-Game-Hub)
## 开始使用
1. 在[版本发布](https://gitea.miri.site/Mr_Fang/cgh_keyboard_fire_tool/releases)中找到最新版本,或[点击此处打开最新发布](https://gitea.miri.site/Mr_Fang/cgh_keyboard_fire_tool/releases/latest),下载文件附件中的 `Keyboard_Fire_Tool_V***.exe`
2. 启动 [Coyote-Game-Hub](https://github.com/hyperzlib/DG-Lab-Coyote-Game-Hub) 服务器(可参照 README 文档进行)
3. 在 CGH 中连接郊狼主机/客户端,获取连接码
4. 启动本工具,填写连接码并配置按键事件,开始监听即可
5. 可使用菜单“文件”中的“保存配置”和“读取配置”保存/读取 `.json` 格式的配置文件([示例配置文件](https://gitea.miri.site/Mr_Fang/cgh_keyboard_fire_tool/src/branch/master/example.json)
## 注意事项
**停止监听可能并不能完全注销热键,若出现此情况,建议保存当前配置后重新启动程序**
## 进入开发
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/) 开源许可协议