Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #InstallKeybdHook
- ChatFlag = 0
- EnableFlag = 0
- SmartCast = 0
- ItemRebind = 0
- CurrentNum = {sc008}
- setKeyDelay, -1
- Choice(p, s)
- {
- Suspend
- global ChatFlag
- global EnableFlag
- global SmartCast
- global CurrentNum
- if (EnableFlag == 0 || ChatFlag == 1)
- send %p%
- if (EnableFlag == 1 && ChatFlag == 0)
- {
- send %s%
- if (SmartCast == 1)
- {
- Sleep 30
- send {Click}
- ;send {Esc}
- ;send {Enter}
- send %CurrentNum%
- if (CurrentNum == "{sc008}")
- CurrentNum = {sc009}
- else
- CurrentNum = {sc008}
- }
- }
- Suspend
- return
- }
- #ifWinActive, ahk_class Warcraft III
- sc010:: ; Q -> D
- Choice("{sc010}", "{sc020}")
- return
- sc011:: ; W -> F
- Choice("{sc011}", "{sc021}")
- return
- sc012:: ; E -> R
- Choice("{sc012}", "{sc013}")
- return
- sc013:: ; R -> W
- Choice("{sc013}", "{sc011}")
- return
- sc020:: ; D -> E
- Choice("{sc020}", "{sc012}")
- return
- sc021:: ; F -> Q
- Choice("{sc021}", "{sc010}")
- return
- sc002:: ; 1
- Choice("{sc002}", "{Numpad7}")
- return
- sc003:: ; 2
- Choice("{sc003}", "{Numpad8}")
- return
- sc004:: ; 3
- Choice("{sc004}", "{Numpad4}")
- return
- sc005:: ; 4
- Choice("{sc005}", "{Numpad5}")
- return
- sc006:: ; 5
- Choice("{sc006}", "{Numpad1}")
- return
- sc007:: ; 6
- Choice("{sc007}", "{Numpad2}")
- return
- sc152:: ; Insert
- Suspend
- if (EnableFlag)
- if (SmartCast == 0)
- {
- send {enter}
- send Smartcast enabled
- Sleep, 500
- send {Esc}
- SmartCast = 1
- }
- else
- {
- send {enter}
- send Smartcast disabled
- Sleep, 500
- send {Esc}
- SmartCast = 0
- }
- Suspend
- return
- sc147:: ; Home
- Suspend
- if (EnableFlag == 0)
- {
- send {enter}
- send Key rebind script enabled
- Sleep, 500
- send {Esc}
- EnableFlag = 1
- SmartCast = 0
- ChatFlag = 0
- }
- else
- {
- send {enter}
- send Key rebind script disabled
- Sleep, 500
- send {Esc}
- EnableFlag = 0
- SmartCast = 0
- ChatFlag = 0
- }
- Suspend
- return
- sc01C:: ; Enter
- Suspend
- send {enter}
- if (EnableFlag == 1)
- if (ChatFlag == 0)
- ChatFlag = 1
- else
- ChatFlag = 0
- Suspend
- return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement