SHOW:
|
|
- or go back to the newest paste.
1 | #SingleInstance force ;force a single instance | |
2 | #HotkeyInterval 0 ;disable the warning dialog if a key is held down | |
3 | #InstallKeybdHook ;Forces the unconditional installation of the keyboard hook | |
4 | #UseHook On ;might increase responsiveness of hotkeys | |
5 | #MaxThreads 20 ;use 20 (the max) instead of 10 threads | |
6 | SetBatchLines, -1 ;makes the script run at max speed | |
7 | SetKeyDelay , -1, -1 ;faster response (might be better with -1, 0) | |
8 | ;Thread, Interrupt , -1, -1 ;not sure what this does, could be bad for timers | |
9 | SetTitleMatchMode Regex | |
10 | SetDefaultMouseSpeed, 0 ;Move the mouse faster for mouse moving commands | |
11 | ||
12 | IfExist, Warcraft III.exe | |
13 | menu, tray, Icon, Warcraft III.exe, 1, 1 | |
14 | ||
15 | ;;;;; Variables ;;;;; | |
16 | bInChatRoom := False | |
17 | bHealthBarOn := False | |
18 | Return ; End Auto-Execute Section | |
19 | ||
20 | ||
21 | ||
22 | #ifWinActive ahk_class ((WarcraftIII)|(OsWindow)|(Qt5QWindowIcon)) | |
23 | ||
24 | ;;;;; Enable/disable all hotkeys ;;;;; | |
25 | ||
26 | ;; Escape will cancel chatting, so turn the hotkeys back on | |
27 | *NumLock:: | |
28 | Suspend, Permit | |
29 | bInChatRoom := not bInChatRoom | |
30 | if (bInChatRoom == True) | |
31 | { | |
32 | Suspend, On | |
33 | SetNumLockState, Off | |
34 | SoundPlay,*64 | |
35 | } | |
36 | else | |
37 | { | |
38 | Suspend, Off | |
39 | SetNumLockState, On | |
40 | SoundPlay,*48 | |
41 | } | |
42 | return | |
43 | ||
44 | ; Bind space to a | |
45 | Space::a | |
46 | ||
47 | ||
48 | - | ; Disable Toggles |
48 | + | |
49 | - | Lwin::return |
49 | + | |
50 | - | <!r::return |
50 | + |