forked from lupuleasa-core/Dota2-TheCore-Config-Engine
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathD2SpaceModifier.ahk
38 lines (32 loc) · 1.76 KB
/
D2SpaceModifier.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
; 1. **Highly Recommended**
; *Documentation: https://autohotkey.com/docs/commands/_SingleInstance.htm *
; Prevents more than one instance from running by closing the old instance when a new one is ran.
#SingleInstance force
; 2. **Highly Recommended**
; *Documentation: https://autohotkey.com/docs/commands/_IfWinActive.htm *
; Only active while you are "Alt-tabbed" into DotA 2.
#IfWinActive ahk_exe dota2.exe
; 3. **Required**
; *Documentation: https://autohotkey.com/docs/Hotkeys.htm *
; *Documentation: https://autohotkey.com/docs/commands/ControlSend.htm *
; Hides all down key presses of the left Windows key from the operating system
; and ALL applications EXCEPT dota2.exe.
~*Space::ControlSend, , {LWin Down}, Dota 2
; 4. **Required**
; *Documentation: https://autohotkey.com/docs/commands/Send.htm *
; Allows all releases of the left Windows key to be seen by the operating system
; and ALL applications INCLUDING dota2.exe.
*Space Up::Send {LWin Up}
; 5. **Highly Recommended**
; *Documentation: https://autohotkey.com/docs/commands/SetNumScrollCapsLockState.htm *
; Upon releasing the CapsLock key, the CapsLock State is set to off.
; It prevents a conflict due to the Windows key and CapsLock interaction.
; This method allows you to still use the CapsLock key as a hotkey in the in-game UI.
~*CapsLock Up::SetCapsLockState Off
; 6. **Optional**
; Binds the Unified Command Modifier to Mouse5 while inside DotA 2 inorder to improve accessibility.
; Overrides other mouse binding software.
*XButton2::Ctrl
; 7. **Optional**
; Disables the left Windows key while inside of DotA 2.
*LWin::Return