-
Notifications
You must be signed in to change notification settings - Fork 0
/
SOCD Cleaner.ahk
60 lines (47 loc) · 1.14 KB
/
SOCD Cleaner.ahk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
I_Icon = SOCD_Cleaner.ico
IfExist, %I_Icon%
Menu, Tray, Icon, %I_Icon%
;return
;; ? FROM: https://www.autohotkey.com/boards/viewtopic.php?p=391598&sid=b225a17ae64d8e7fa5ae600b77b5b6f4#p391598
#InstallKeybdhook
#UseHook On
#MaxHotkeysPerInterval 200 ; ? FROM: https://www.autohotkey.com/board/topic/62512-permanently-turn-off-that-annoying-hotkey-limit/
;; * Pressing both Left & Right buttons cancels each other.
;; ? Left: e
;; ? Right: f
~e::
if(GetKeyState("f", "p"))
SendInput {e up}{f up}
Return
~f::
if(GetKeyState("e", "p"))
SendInput {e up}{f up}
Return
~e up::
if(GetKeyState("f", "p"))
SendInput {f down}
Return
~f up::
if(GetKeyState("e", "p"))
SendInput {e down}
Return
;; * Pressing both Jump & Crouch buttons cancels each other.
;; ? Jump: space
;; ? Crouch: r
~r::
if(GetKeyState("space", "p"))
SendInput {r up}{space up}
Return
~space::
if(GetKeyState("r", "p"))
SendInput {r up}{space up}
Return
~r up::
if(GetKeyState("space", "p"))
SendInput {space down}
Return
~space up::
if(GetKeyState("r", "p"))
SendInput {r down}
Return
;; ! BSDK