YOU MUST SET ABILITIES TO QUICK CAST OR AUTO CAST~~~~
If you have any feedback/tips/suggestions/questions or want abilities swapped around to different mouse buttons feel free to ask!
FUNCTIONS/ABILITIES
Scroll Down is Q or your primary ability
Middle Button (actually clicking down on the scroll button, not scrolling) is W or your secondary ability
Middle Button x2 is your E or third ability
Scroll Up is you R or ultimate ability
Middle Button x3 is your D or first summoner spell (usually flash)
Middle Button x4 is your F key or second summoner spell
HERE IS THE CODE!!!!
Code: Select all
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
#IfWinActive League of Legends (TM) Client
Mbutton::
if (Mbut_presses > 0) ; SetTimer already started, so we log the keypress instead.
{
Mbut_presses += 1
return
}
; Otherwise, this is the first press of a new series. Set count to 1 and start
; the timer:
Mbut_presses := 1
SetTimer, Mbut, -600 ; Wait for more presses within a 600 millisecond window.
return
Mbut:
if (Mbut_presses = 1) ; The key was pressed once.
{
Send w ; Casts W.
}
else if (Mbut_presses = 2) ; The key was pressed twice.
{
Send e ; Casts E.
}
else if (Mbut_presses = 3) ; The key was pressed three times.
{
Send d ; Casts D or summ spell 1.
}
else if (Mbut_presses = 4) ; The key was pressed four times.
{
Send f ; Casts F or summ spell 2.
}
else if (Mbut_presses > 5)
{
MsgBox, Five or more clicks detected.
}
; Regardless of which action above was triggered, reset the count to
; prepare for the next series of presses:
Mbut_presses := 0
return
LButton::RButton
return
WheelDown::Send {q}
return
WheelUp::Send {r}
return