-
-
Save xeex/4afbf0a0820edc8798ddf749e1972a60 to your computer and use it in GitHub Desktop.
SOCD cleaner
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* The "default" SOCD cleaner | |
| Left + Right = Neutral | |
| Up + Down = Up | |
| */ | |
| #NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. | |
| #Warn ; Enable warnings to assist with detecting common errors. | |
| SendMode Input | |
| SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory. | |
| #SingleInstance, force | |
| #MaxHotkeysPerInterval 200 ; allow up to 200 hotkeys per interval (from the default 70) | |
| critical on | |
| GroupAdd, FGC, ahk_exe GuiltyGearXrd.exe | |
| GroupAdd, FGC, ahk_exe GGST-Win64-Shipping.exe | |
| GroupAdd, FGC, ahk_exe MBAA.exe | |
| GroupAdd, FGC, ahk_exe umvc3.exe | |
| GroupAdd, FGC, ahk_exe NohBoard.exe ; for testing, keep this commented otherwise | |
| ;Thread, Interrupt, .00005, 2 | |
| #IfWinActive, ahk_group FGC | |
| $q:: ;left down | |
| critical | |
| If GetKeyState("e", "P") { | |
| SendInput {e up} | |
| } | |
| else { | |
| SendInput {q down} | |
| } | |
| return | |
| $e:: ;right down | |
| critical | |
| If GetKeyState("q", "P") { | |
| SendInput {q up} | |
| } | |
| else { | |
| SendInput {e down} | |
| } | |
| return | |
| $space:: ;up down | |
| critical | |
| SendInput {w up}{space down} | |
| return | |
| $w:: ;down down | |
| critical | |
| If GetKeyState("space", "P") | |
| { | |
| SendInput {w up}{space down} | |
| } | |
| else { | |
| SendInput {w down} | |
| } | |
| return | |
| $q up:: ;left up | |
| critical | |
| If GetKeyState("e", "P") { | |
| SendInput {e down} | |
| } | |
| SendInput {q up} | |
| return | |
| $e up:: ;right up | |
| critical | |
| If GetKeyState("q", "P") { | |
| SendInput {q down} | |
| } | |
| SendInput {e up} | |
| return | |
| $space up:: ;;up up | |
| critical | |
| if GetKeyState("w", "P") { | |
| SendInput {w down} | |
| } | |
| SendInput {space up} | |
| return | |
| $w up:: ;down up | |
| critical | |
| SendInput {w up} | |
| return | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment