[LF] Macro for chat league of legends

Ask gaming related questions
josephpk
Posts: 1
Joined: 11 Jan 2018, 23:09

[LF] Macro for chat league of legends

11 Jan 2018, 23:37

Hello!
I'm looking for something similar to a key logger, to record what I type when I press enter, and to stop recording when I press enter again. So I can press enter and then paste what was previously typed. League doesnt allow you to copy and past in chat so I am looking for a script to help do that
User avatar
StundeR
Posts: 18
Joined: 03 Aug 2016, 10:05

Re: [LF] Macro for chat league of legends

19 Jan 2018, 13:02

Code: Select all

#SingleInstance force
#NoTrayIcon
FileDelete, %A_Temp%\lolchat.txt
Gui, +ToolWindow
Gui, Show, w200 h0, LoLChatMacro
typing = 0
Loop
{
if (typing = 1){
Input, Text, C V T2
StringReplace, Text, Text, `r`n`r`n, `r`n
FileAppend, %Text%, %A_Temp%\lolchat.txt
}
}
return
ENTER::
if (typing = 0){
	FileDelete, %A_Temp%\lolchat.txt
	typing = 1
	}
else if (typing = 1)
	typing = 0
return

^V::
	FileRead, Paste, %A_Temp%\lolchat.txt
	Send, %Paste%
return
GuiClose:
ExitApp
Closing the window exits the script, CTRL+V pastes the text you typed
Is that what are you looking for?
Hi

Return to “Gaming”

Who is online

Users browsing this forum: Google [Bot] and 12 guests