s4bb4th/HellDivers2Macros
Fork: 3 Star: 11 (更新于 2024-10-25 07:01:55)
license: 暂无
Language: AutoHotkey .
AutoHotKey script for calling in Stratagems in HellDivers 2
HellDivers 2 Macro [ CURRENTLY BROKEN ]
- The method used for this macro seems to have been patched.
- Even a basic logitech software macro uses AHK to input commands, meaning a solution would require a more complex method.
- This will take some digging, fix ETA unkown
This is an AutoHotKey script that to quickly call in stratagems. Read the Notes section for FAQ
Demonstration: https://www.youtube.com/watch?v=T_I3-dgA9xI
How To Use:
- Install software dependencies
- Configure script
- Run
Installation
- Download AutoHotKey (https://www.autohotkey.com/)
- Download Notepad++ (https://notepad-plus-plus.org/)
- Download HellDivers2Macro.ahk (above)
Configuration
Right click the .ahk script file, and open with Notepad++. The script is currently configured into 3 sections:
- Headers (No changes required)
- Keybindings
- Stratagem Definitions
Keybind format:
KEY-NAME::METHOD-NAME()
Keybind example:
Numpad7::RESUPPLY()
Stratagem format:
METHOD-NAME() {
SendInput, {LControl Down}
Sleep 25
SendInput, {Blind}{ARROW-KEY-1 Down}
Sleep 25
SendInput, {Blind}{ARROW-KEY-1 Up}
Sleep 25
SendInput, {Blind}{ARROW-KEY-2 Down}
Sleep 25
SendInput, {Blind}{ARROW-KEY-2 Up}
Sleep 25
SendInput, {Blind}{ARROW-KEY-3 Down}
Sleep 25
SendInput, {Blind}{ARROW-KEY-3 Up}
Sleep 25
SendInput, {LControl Up}
return
}
Stratagem example:
OrbitalPrecisionStrike() {
SendInput, {LControl Down}
Sleep 25
SendInput, {Blind}{Right Down}
Sleep 25
SendInput, {Blind}{Right Up}
Sleep 25
SendInput, {Blind}{Right Down}
Sleep 25
SendInput, {Blind}{Right Up}
Sleep 25
SendInput, {Blind}{Up Down}
Sleep 25
SendInput, {Blind}{Up Up}
Sleep 25
SendInput, {LControl Up}
return
}
Run
- Save any changes to the .ahk script.
- Double click the file to run using AutoHotKey software.
- Script is now running, return to your game and press a keybind to test.
Conclusion
Notes:
- The default script works using the ARROW KEYS to call in stratagems, not WASD.
(You can re-configure this in the script by replacing
ARROW-KEY-1
withW
,A
,S
, orD
.) - The script only works while not actively pressing WASD. (You must let go of WASD, press the bind, and then can resume pressing WASD.)
- The script will hold Ctrl + call the stratagem (You do not need to hold Ctrl yourself, but you will have to throw the stratagem yourself.)
- I found that any delay less than 35ms was causing error when triggering longer combinations.
- ONLY A FEW STRATAGEMS HAVE BEEN DEFINED IN THE PROVIDED SCRIPT.
Credits:
Thank you to @Blu3spirits for their work on a similar HellDivers1 script which inspired this format. & thanks tony.
I've developed many .ahk scripts, but this one was particularly buggy to get working... This is my first working product, and is nowhere near optimal/complete. Please make your own changes to the script and open them as a PR!
最近版本更新:(数据更新于 1970-01-01 00:00:00)
s4bb4th/HellDivers2Macros同语言 AutoHotkey最近更新仓库
2019-01-10 12:20:08 markwkidd/ahk-retroarch-playlist-helpers
1970-01-01 00:00:00 shines77/AutoHotKey_Vim
1970-01-01 00:00:00 joffreybesos/d2r-mapview
1970-01-01 00:00:00 BuilderDolphin/dolphSol-Macro
1970-01-01 00:00:00 keithdreier/CheaterUI
1970-01-01 00:00:00 Juullo/helldivers-2-ahk