Skip to content

Instantly share code, notes, and snippets.

@JarvisPrestidge
Last active March 16, 2016 09:08
Show Gist options
  • Save JarvisPrestidge/399605096bf37a86822c to your computer and use it in GitHub Desktop.
Save JarvisPrestidge/399605096bf37a86822c to your computer and use it in GitHub Desktop.
AutoHotKey sctipt that turns functions keys into macros that print into chat, along with space modifiers and an ss hotkey.
; Original all bells and whistles League of Legends helper and macro script
; Author: Jarvis Prestidge
; Description: Script to add function key macros to display in game chat
; pictures and banners. Hotkey to turn space into a Ctrl modifier and
; sending "ss" to chat & missing ping when <`> is pressed.
#NoEnv
#Warn
#InstallKeybdHook
#UseHook
SendMode Input
#IfWinActive ahk_class RiotWindowClass
; Turns space into the left ctrl modifier
~Space::Ctrl
; Sending "ss care" to chat
`::
send, {Enter}
sleep, 15
send, ss
sleep, 15
send, {Enter}
sleep, 15
send, n
Return
; Function key macro's
f1::
Send, {enter}
j:=1
Loop:
if (j==1)
Send,  
if (j==2)
Send,  
if (j==3)
Send,            (\__/)
if (j==4)
Send,           ({+}'.'{+})
if (j==5)
Send,           (")_(")
if (j==6)
Send,  
if (j==7)
Send,         GJ Team {^}{^}
if (j==8)
{
Send,    
Sleep, 15
Send, {Enter}
j:=0
return
}
Sleep, 15
Send, {Enter}
Sleep, 15
Send, {Enter}
Sleep, 15
j+=1
Goto, Loop
return
f2::
Send, {enter}
j:=1
Loop2:
if (j==1)
Send, /all  
if (j==2)
Send, /all  
if (j==3)
Send, /all            (\__/)
if (j==4)
Send, /all           ({+}'.'{+})
if (j==5)
Send, /all           (")_(")
if (j==6)
Send, /all  
if (j==7)
Send, /all           BOOM{!}
if (j==8)
{
Send, /all  
Sleep, 15
Send, {Enter}
j:=0
return
}
Sleep, 15
Send, {Enter}
Sleep, 15
Send, {Enter}
Sleep, 15
j+=1
Goto, Loop2
return
f3::
Send, {enter}
j:=1
Loop3:
if (j==1)
Send, /all  
if (j==2)
Send, /all            „__„
if (j==3)
Send, /all           {{}O,o{}}
if (j==4)
Send, /all           |)__)
if (j==5)
Send, /all           -”–”-
if (j==6)
Send, /all  
if (j==7)
Send, /all     Such Play Wow
if (j==8)
{
Send, /all  
Sleep, 15
Send, {Enter}
j:=0
return
}
Sleep, 15
Send, {Enter}
Sleep, 15
Send, {Enter}
Sleep, 15
j+=1
Goto, Loop3
return
f4::
Send, {enter}
j:=1
Loop4:
if (j==1)
Send, /all  
if (j==2)
Send, /all            „__„
if (j==3)
Send, /all           {{}O,o{}}
if (j==4)
Send, /all           |)__)
if (j==5)
Send, /all           -”–”-
if (j==6)
Send, /all  
if (j==7)
Send, /all         WTF???
if (j==8)
{
Send, /all  
Sleep, 15
Send, {Enter}
j:=0
return
}
Sleep, 15
Send, {Enter}
Sleep, 15
Send, {Enter}
Sleep, 15
j+=1
Goto, Loop4
return
f5::
Send, {Enter down}
Sleep, 20
Send, {Enter up}
Sleep, 20
j:=1
Loop8:
if (j==1)
Send, /all  
if (j==2)
Send, /all lollol
if (j==3)
Send, /all lollol
if (j==4)
Send, /all lollol
if (j==5)
Send, /all lollol
if (j==6)
Send, /all lollol
if (j==7)
Send, /all lollol
if (j==8)
Send, /all lollollollollollol
if (j==9)
Send, /all lollollollollollol
if (j==10)
Send, /all  
if (j==11)
Send, /all     lollollollol
if (j==12)
Send, /all lollol         lollol 
if (j==13)
Send, /all lollol         lollol
if (j==14)
Send, /all lollol         lollol
if (j==15)
Send, /all lollol         lollol
if (j==16)
Send, /all lollol         lollol
if (j==17)
Send, /all lollol         lollol
if (j==18)
Send, /all     lollollollol
if (j==19)
Send, /all  
if (j==20)
Send, /all lollol
if (j==21)
Send, /all lollol
if (j==22)
Send, /all lollol
if (j==23)
Send, /all lollol
if (j==24)
Send, /all lollol
if (j==25)
Send, /all lollol
if (j==26)
Send, /all lollollollollollol
if (j==27)
{
Send, /all lollollollollollol
Sleep, 30
Send, {Enter}
j:=0
return
}
Sleep, 30
Send, {Enter}
Sleep, 30
Send, {Enter}
Sleep, 30
j+=1
Goto, Loop8
return
f6::
Loop, 2
{
Send, {Enter down}
Sleep, 20
Send, {Enter up}
Sleep, 20
j:=1
Loop6:
if (j==1)
Send, /all  
if (j==2)
Send, /all        GGGGGG
if (j==3)
Send, /all    GG             GG
if (j==4)
Send, /all  GG              GGG
if (j==5)
Send, /all GG
if (j==6)
Send, /all GG           GGGGG
if (j==7)
Send, /all  GG                GG
if (j==8)
Send, /all    GG             GG
if (j==9)
{
Send, /all        GGGGGG
Sleep, 30
Send, {Enter}
j:=0
continue
}
Sleep, 30
Send, {Enter}
Sleep, 30
Send, {Enter}
Sleep, 30
j+=1
Goto, Loop6
}
return
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment