Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #SingleInstance force ;force a single instance
- #HotkeyInterval 0 ;disable the warning dialog if a key is held down
- #InstallKeybdHook ;Forces the unconditional installation of the keyboard hook
- #UseHook On ;might increase responsiveness of hotkeys
- #MaxThreads 20 ;use 20 (the max) instead of 10 threads
- SetBatchLines, -1 ;makes the script run at max speed
- SetKeyDelay , -1, -1 ;faster response (might be better with -1, 0)
- ;Thread, Interrupt , -1, -1 ;not sure what this does, could be bad for timers
- SetTitleMatchMode Regex
- SetDefaultMouseSpeed, 0 ;Move the mouse faster for mouse moving commands
- IfExist, Warcraft III.exe
- menu, tray, Icon, Warcraft III.exe, 1, 1
- ;;;;; Variables ;;;;;
- bInChatRoom := False
- bHealthBarOn := False
- Return ; End Auto-Execute Section
- #ifWinActive ahk_class ((WarcraftIII)|(OsWindow)|(Qt5QWindowIcon))
- ;;;;; Enable/disable all hotkeys ;;;;;
- ;; Escape will cancel chatting, so turn the hotkeys back on
- *NumLock::
- Suspend, Permit
- bInChatRoom := not bInChatRoom
- if (bInChatRoom == True)
- {
- Suspend, On
- SetNumLockState, Off
- SoundPlay,*64
- }
- else
- {
- Suspend, Off
- SetNumLockState, On
- SoundPlay,*48
- }
- return
- ; Bind space to a
- Space::a
- ;;LCtrl::Space
- ;;Space::LCtrl
- ;To swap the Ctrl key with the Spacebar just remove the ;; from the 2 lines above
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement