An AutoHotKey script (works on 1080p,2k, 4k) and Python CLI (works on 1080p) to minimize recoil with auto weapon detection for Apex Legends.
Apex Legends 压枪宏,带武器自动检测,包含了一个ahk的版本 (支持 1080p,2k, 4k) 和一个python的版本 (只支持 1080p) 。
This repository contains an Autohotkey script to help you minimize weapon recoil. Your weapon is auto-detected by the script (no need to press the F key anymore! XD). The detection is based on a straightforward and naive strategy (I call it three-pixel-detection). It is pretty safe because all it does is just capture some pixels and then use mouse DllCall to move your mouse. Run the compiled version if you want more protection. Current support weapon: R99, R301, RE45, Flatline, Spitfire, Havoc, Volt, Devotion, L-Star, Hamlok, Prowler, Alternator, P2020 and Rampage.
该库包含了一个带自动武器检测的 Apex Legends 压枪宏,不读内存,不注入游戏文件,纯粹就是识别像素颜色并帮助你移动鼠标,不会封号(这就类似于那些淘宝卖好几百的主播专用压枪宏)。目前支持枪械包括 R99, R301, RE45, Alternator, Flatline, Spitfire, Havoc, Volt, Devotion, L-Star, Hamlok, Prowler, P2020 and Rampage.
- Pros
- comes with GUI 有圖形界面
- support multiple resolution settings 支持多種分辨率 (1080p,2k, 4k)
- simple 简单
- out of the box 开箱即用
- support different language setting in game 支持不同的游戏语言设置
- Cons
- too many magic pixel position 太多神奇的像素位置设定
- need lots of modification to support other resolution 很难去支持别的分辨率
- not many people know how to code with AHK, not DIY friendly 脚本编程语言小众
The repository also contains a Python version of the AHK script. It uses the Google Tesseract OCR and OpenCV to detect the weapon being used via key listener. The recoil-patterns are applied via win32api mouse_event. The program was built to be consumed as a CLI. The Python dir also contains a recoil-pattern creation tool which can be found in the modules dir. For more info please read the README in the python dir.
该库也包含了一个有着相似功能的 Python 脚本。这个脚本使用到了 Google Tesseract OCR 和 OpenCV 技术并通过监测键盘输入去进行武器检测。这个脚本主要通过命令行交互界面进行操作。
- Pros
- DIY friendly 客制化容易
- Cool CLI 好看的命令行界面
- Smart detection strategy 更为智能的武器检测策略
- Cons
- detection based on OCR, only support English charactor 只支持英文游戏界面
- currently don't have as much as features as the AHK one 目前功能没有ahk版本那么多
I post a thread there too, to let more people know the script. But there are soooooooo many rules there and they don't even support markdown! So, to catch up with the latest version, check the issue page first.
It would be good if you can help me setup some more accurate recoil value or make the script support more weapons. Check the code and send me a pull request if you do so. I really appreciate that.
目前补偿还不是特别精确,因为调试的过程比较枯燥。我希望有朋友可以帮我调试相应的补偿或提供更多枪械的检测。欢迎大家给我发 pull request。谢谢!
Aaron Yau 💻 |
Brandon Williams 💻 |
filen1 🔣 |