League of Legends scripts for lack of a keyboard/Ease of pinging/Dual Mice users

Post gaming related scripts
Larabeast
Posts: 23
Joined: 10 Oct 2020, 20:30

League of Legends scripts for lack of a keyboard/Ease of pinging/Dual Mice users

Post by Larabeast » 12 Oct 2020, 23:37

UPDATED VERSION IN THE NEXT POST MUCH BETTER AND DIFFERENT LAYOUT
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
Last edited by Larabeast on 15 Oct 2020, 03:43, edited 1 time in total.

Larabeast
Posts: 23
Joined: 10 Oct 2020, 20:30

Re: League of Legends Lazy Time! One mouse No Keyboard NO PROBLEM!

Post by Larabeast » 13 Oct 2020, 16:47

Here we go, All you need this time is Default attack settings and AutoCast, this will not work if you have attack move set to left click
Controls are as follows:
Left mouse button x1 is Q or Primary
Left Mouse button x2 (or double click) is W or Secondary
Middle Button x1 is E (incase you don't know the middle button is physically clicking down on the scroll wheel)
Middle Button x2 is R
Scroll Down x1 is D
Scroll Down x2 is F
Scroll Up x1 is Y or your camera lock / unlock
Scroll Up x2 is B or your recall button

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.
; Everything to the right of the semicolon is a comment or description.

#IfWinActive League of Legends (TM) Client

Mbutton::  ; Middle Mouse Button / clicking down on the scroll wheel.
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, -400 ; Wait for more presses within a 400 millisecond window.
return

Mbut:
if (Mbut_presses = 1) ; The key was pressed once.
{
    Send e  ; Casts E.
}
else if (Mbut_presses = 2) ; The key was pressed twice.
{
    Send r  ; Casts R.
}
else if (Mbut_presses > 2)
{

}
; Regardless of which action above was triggered, reset the count to
; prepare for the next series of presses:
Mbut_presses := 0
return

LButton::  ; Left Click or left button.
if (Lbut_presses > 0) ; SetTimer already started, so we log the keypress instead.
{
    Lbut_presses += 1
    return
}
; Otherwise, this is the first press of a new series. Set count to 1 and start
; the timer:
Lbut_presses := 1
SetTimer, Lbut, -500 ; Wait for more presses within a 400 millisecond window.
return

Lbut:
if (Lbut_presses = 1) ; The key was pressed once.
{
    Send q  ; Primary Attack Q.
}
else if (Lbut_presses = 2) ; The key was pressed twice.
{
    Send w  ; Secondary Attack W.
}
else if (Lbut_presses > 2)
{

}
; Regardless of which action above was triggered, reset the count to
; prepare for the next series of presses:
Lbut_presses := 0
return

WheelDown::  ; Scroll Down
if (Wdown_presses > 0) ; SetTimer already started, so we log the keypress instead.
{
    Wdown_presses += 1
    return
}
; Otherwise, this is the first press of a new series. Set count to 1 and start
; the timer:
Wdown_presses := 1
SetTimer, Wdown, -400 ; Wait for more presses within a 400 millisecond window.
return

Wdown:
if (Wdown_presses = 1) ; The key was pressed once.
{
    Send d  ; Casts Summ Spell 1.
}
else if (Wdown_presses = 2) ; The key was pressed twice.
{
    Send f  ; Casts Summ spell 2.
}
else if (Wdown_presses > 2)
{

}
; Regardless of which action above was triggered, reset the count to
; prepare for the next series of presses:
Wdown_presses := 0
return

WheelUp::  ; Scroll Up
if (Wup_presses > 0) ; SetTimer already started, so we log the keypress instead.
{
    Wup_presses += 1
    return
}
; Otherwise, this is the first press of a new series. Set count to 1 and start
; the timer:
Wup_presses := 1
SetTimer, Wup, -400 ; Wait for more presses within a 400 millisecond window.
return

Wup:
if (Wup_presses = 1) ; The key was pressed once.
{
    Send y  ; Casts Camera Lock.
}
else if (Wup_presses = 2) ; The key was pressed twice.
{
    Send b  ; Casts Recall.
}
else if (Wup_presses > 2)
{

}
; Regardless of which action above was triggered, reset the count to
; prepare for the next series of presses:
Wup_presses := 0
return

Larabeast
Posts: 23
Joined: 10 Oct 2020, 20:30

Re: League of Legends Lazy Time! One mouse No Keyboard NO PROBLEM!

Post by Larabeast » 15 Oct 2020, 03:34

Here is one that is for lefty switch (auto attack move is bound to left click) Set your spells to quick cast and set your move only to right button, the script will make your left button attack move and move and Middle Button clicks 1-4 z x c v

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, -650 ; Wait for more presses within a 600 millisecond window.
return

Mbut:
if (Mbut_presses = 1) ; The key was pressed once.
{
    Send z  ; Casts W.
}
else if (Mbut_presses = 2) ; The key was pressed twice.
{
    Send x  ; Casts E.
}
else if (Mbut_presses = 3) ; The key was pressed twice.
{
    Send v  ; Casts E.
}
else if (Mbut_presses = 4) ; The key was pressed twice.
{
    Send c  ; Casts E.
}
else if (Mbut_presses > 4)
{
    Send c
}
; 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

Larabeast
Posts: 23
Joined: 10 Oct 2020, 20:30

Re: League of Legends Lazy Time! One mouse No Keyboard NO PROBLEM!

Post by Larabeast » 15 Oct 2020, 03:39

This is one I made for the use with two mice and no keyboard it works really well with champions like Ashe. Not ethical without two mice and it does not work with lefty switch. Quick cast must be activated also.

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.
; Everything to the right of the semicolon is a comment or description.
; THIS SCRIPT IS FOR USE WITH DUAL MICE, NOT ETHICAL OTHERWISE.

#IfWinActive League of Legends (TM) Client

Mbutton::  ; Middle Mouse Button / clicking down on the scroll wheel.
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, -300 ; Wait for more presses within a 300 millisecond window.
return

Mbut:
if (Mbut_presses = 1) ; The key was pressed once.
{
    Send d  ; Casts D.
}
else if (Mbut_presses = 2) ; The key was pressed twice.
{
    Send f  ; Casts F.
}
else if (Mbut_presses > 2)
{

}
; Regardless of which action above was triggered, reset the count to
; prepare for the next series of presses:
Mbut_presses := 0
return

LButton::  ; Left Click or left button.
if (Lbut_presses > 0) ; SetTimer already started, so we log the keypress instead.
{
    Lbut_presses += 1
    return
}
; Otherwise, this is the first press of a new series. Set count to 1 and start
; the timer:
Lbut_presses := 1
SetTimer, Lbut, -350 ; Wait for more presses within a 300 millisecond window.
return

Lbut:
if (Lbut_presses = 1) ; The key was pressed once.
{
    Send q  ; Primary Attack Q.
}
else if (Lbut_presses = 2) ; The key was pressed twice.
{
    Send w  ; Secondary Attack W.
}
else if (Lbut_presses = 3) ; The key was pressed three times.
{
    Send e  ; e.
}
else if (Lbut_presses = 4) ; The key was pressed four times.
{
    Send r  ; Ultimate Attack r.
}
else if (Lbut_presses > 4)
{
    Send rrrrrrr  ; Casts R if you accidentally hit more than 4 times in 200ms
}
; Regardless of which action above was triggered, reset the count to
; prepare for the next series of presses:
Lbut_presses := 0
return

WheelDown::  ; Scroll Down
if (Wdown_presses > 0) ; SetTimer already started, so we log the keypress instead.
{
    Wdown_presses += 1
    return
}
; Otherwise, this is the first press of a new series. Set count to 1 and start
; the timer:
Wdown_presses := 1
SetTimer, Wdown, -200 ; Wait for more presses within a 300 millisecond window.
return

Wdown:
if (Wdown_presses = 1) ; The key was pressed once.
{
    Send p  ; Opens the shop.
}
else if (Wdown_presses = 2) ; The key was pressed twice.
{
    Send z  ; Pings enemy missing for me, does whatever you set z to in game.
}
else if (Wdown_presses > 2)
{

}
; Regardless of which action above was triggered, reset the count to
; prepare for the next series of presses:
Wdown_presses := 0
return

WheelUp::  ; Scroll Up
if (Wup_presses > 0) ; SetTimer already started, so we log the keypress instead.
{
    Wup_presses += 1
    return
}
; Otherwise, this is the first press of a new series. Set count to 1 and start
; the timer:
Wup_presses := 1
SetTimer, Wup, -400 ; Wait for more presses within a 300 millisecond window.
return

Wup:
if (Wup_presses = 1) ; The key was pressed once.
{
    Send y  ; Casts Camera Lock.
}
else if (Wup_presses = 2) ; The key was pressed twice.
{
    Send b  ; Casts Recall.
}
else if (Wup_presses > 2)
{

}
; Regardless of which action above was triggered, reset the count to
; prepare for the next series of presses:
Wup_presses := 0
return





Larabeast
Posts: 23
Joined: 10 Oct 2020, 20:30

Re: League of Legends scripts for lack of a keyboard/Ease of pinging/Dual Mice users

Post by Larabeast » 21 Mar 2021, 13:57

Going to make another, will have it posted tomorrow.

Post Reply

Return to “Gaming Scripts (v1)”