HoN Script - Mouse Wheel

Updated Aug 21/11
- Successfully tested gaming mouse buttons 1 and 2; They were successfully mapped. Left/Right wheel click may not be supported by certain mouse types.
- added functionality (mapped right/left wheel clicking to inventory slots mid right and bottom left)
- improved speed and reliability
- added shift-queuability for pro users and people who like epic ults.
- disabled Left and Right Windows Keys as they annoyed the crap out of me.

Here is a handy mouse wheel script that allows use of items in your inventory slot.
- uses the default HoN inventory shortcuts but maps them to your mouse wheel. Includes auto-left clicking for instant blink/tp etc.

The .exe for this script can be found here.

Mouse Wheel Script

#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.).
*/