#ifWinActive, Warcraft III ahk_class Warcraft III
;;;;; Enable/disable all hotkeys ;;;;;
~*Enter::
~*NumpadEnter::
Suspend, Permit
if (bInChatRoom == True)
return
Suspend
if (A_IsSuspended == true)
{
SoundPlay,*64
SetScrollLockState, Off
}
else
{
SoundPlay,*48
SetScrollLockState, On
}
return
;; Escape will cancel chatting, so turn the hotkeys back on
~*Esc::
Suspend, Permit
if (bInChatRoom == True)
return
Suspend, Off
SoundPlay,*48
SetScrollLockState, On
;;;;; Toggle health on/off ;;;;;
;; the health bars are automatic now and cannot be turned off
;; however if for some reason they get turned off, pressing this key will turn it on
bHealthBarOn := not bHealthBarOn
if (bHealthBarOn == true)
SendPlay, {ß Down}{å Down}
else
SendPlay, {ß Up}{å Up}
return
*ScrollLock::
Suspend, Permit
bInChatRoom := not bInChatRoom
if (bInChatRoom == True)
{
Suspend, On
SetScrollLockState, Off
SoundPlay,*64
}
else
{
Suspend, Off
SetScrollLockState, On
SoundPlay,*48
}
return
; Disable Left Windows Key
Lwin::return
; Disable Left Alt-Q GG
<!q::return
; Inventory Keys:
q::Numpad7
w::Numpad8
e::Numpad4
r::Numpad5
; Hotkeys Remapper:
; User Specified Hotkeys: