#ifWinActive ahk_class K2_Direct3D
#SingleInstance Force
Sendmode Play ; Solves some incompatability issues.
#MaxHotkeysPerInterval 200
MButton::Send !w{LButton} ;;Clicking the mouse wheel will use your top right item.
WheelUp::Send !q{LButton} ;;Scroll up will use the top left item.
WheelDown::Send !a{LButton} ;;Scroll down will use the middle left item.
WheelLeft::Send !e{LButton} ;;Clicking the wheel left will use the bottom left item.
WheelRight::Send !s{LButton} ;;Clicking the wheel right will use the bottom right item.
XButton1::Send !e{LButton} ;;Clicking the first mouse button will use the bottom left item.
XButton2::Send !s{LButton} ;;Clicking the second mouse button will use the bottom right item.
;;Makes using the keys shift-queuable for magmus/ pro players who use it alot.
+MButton::Send {Shift Down}!w{LButton}{Shift Up} ;;Clicking the mouse wheel will use your top right item.
+WheelUp::Send {Shift Down}!q{LButton}{Shift Up} ;;Scroll up will use the top left item.
+WheelDown::Send {Shift Down}!a{LButton}{Shift Up} ;;Scroll down will use the middle left item.
+WheelLeft::Send {Shift Down}!e{LButton}{Shift Up} ;;Clicking the wheel left will use the bottom left item.
+WheelRight::Send {Shift Down}!s{LButton}{Shift Up} ;;Clicking the wheel right will use the bottom right item.
+XButton1::Send {Shift Down}!e{LButton}{Shift Up} ;;Clicking the first mouse button will use the bottom left item.
+XButton2::Send {Shift Down}!s{LButton}{Shift Up} ;;Clicking the second mouse button will use the bottom right item.
;; By popular demand, I am also disabling the Left and Right windows key buttons in game. Use alt-tab to switch out.
LWin::
RWin::
return
;; WheelLeft, WheelRight are only active if your mouse supports such actions.
;; XButton1 and XButton2 are the buttons found on some gaming mice. They will mirror what WheelLeft and WheelRight do (easier use).
/*
Examples: Your mouse hovers over an enemy unit and you mouse wheel up (ex. codex or cyclone).
Your mouse hovers over a spot .. you mouse down (ex. blink) then up (ex. shunken head) and use spells/ult /we (tempest/soulstealer etc.).
*/