Skip to content

HOW TO: Unbind your enter key to prevent inadvertent toxicity

Karunamon··44 votes·49,400 views

These steps are no longer necessary - the ability to disable ally chat is now a part of the client.

An explanation for how you can disable your own ability to chat to completely remove the possibility of yelling at your Wood 5 team and winding up item 3133'ed after a bad game.

If you can't hit enter, you can't send chat.The game client lets you rebind most of your keys, but critically, enter isn't one of them. This means we have to use something else if we want to change what enter does.


Instructions

(Last updated 2018/06/08)

Windows

NOTE: CURRENTLY NOT WORKING 100% (10/2018). You must currently relaunch autohotkey after the game has loaded to have it capture the enter key properly. Looking at alternative options now.

  1. Install AutoHotKey
  2. Copy the text in the box below:

#ifwinactive League of Legends (TM) Client

*Enter::return

*NumpadEnter::return

  1. Open notepad, hit paste
  2. Save the file somewhere you can easily access, and name it unbindEnterLoL.ahk
  3. Load the file with AutoHotKey.

Note: if you find that this isn't working correctly, you may need to run AutoHotKey as administrator

Mac

  1. Install HammerSpoon
  2. When it starts for the first time, you'll be prompted to grant it accessibility access. Ensure you do this, or it won't work.
  3. Copy the text in the box below:

enterUnbind = hs.hotkey.new({}, 'return', function () end ) hs.window.filter.new('League of Legends (TM) Client') :subscribe(hs.window.filter.windowFocused, function() enterUnbind:enable() end) :subscribe(hs.window.filter.windowUnfocused, function() enterUnbind:disable() end)

  1. In Hammerspoon's menu, select "open config"
  2. Paste the text you just copied into the text editor that appears
  3. Save the file.
  4. In Hammerspoon, click on "Reload config"

Note: if this is not working, you need to run the game in windowed, or fullscreen borderless mode. If the game is set to fullscreen, the keybind will not activate properly. As an alternative, you can use this text, which will disable enter as long as Hammerspoon is running. You will need to close it outright after exiting the game or enter still won't work!

enterUnbind = hs.hotkey.new({}, 'return', function() end):enable()


Now, if the League client is active, Enter does nothing, and you will be unable to send outgoing messages. This will have no impact on the rest of your computer.

Once you feel that you've cooled off, just turn off AutoHotKey/Hammerspoon, and Enter will work as normal.

Hope this helps! [slayer-pantheon-thumbs]

102 Comments

Karunamon8 votes

Oh yeah, I should note that this program doesn't interact with the League client in any way, and so is not a danger to your account. It is not a modification of the game or its files, it doesn't read the game's memory, it doesn't give you any advantage in game.

destinedaboss22 votes

This could be incorrect. According to that little info note before game, toxic players lose some % more games than non toxic players.

By doing this, you are removing your ability to be toxic, which is a huge advantage to your team.

If people stop getting banned for cussing in chat, those people will stop buying all the same content twice from Riot.

Looks like a ban is coming for you, comrade.

ScrubLordSarah5 votes

Actually, after having a close call to a perma-ban, I was recommended to use this trick to unbind my enter key, recommended by an admin, so that I am not toxic(:

Hi im Kovar5 votes

I wish I read this before getting banned 3 days ago, am I right....

Reaper Soraka4 votes

just remember that you can't type so you don't end up typing YOU (D)UMB NOOB STOP (F)UCKING GOING IN ALONE JRGI45PTYURG0REGKJRE&$#($#(

next thing you'll see are question marks spammed on you, you'll have no summoner spells and no way to tell them you're just as dumb as they are.

420 grams2 votes

Or just, you know, not be toxic?

Karunamon6 votes

I agree, but this gets posted enough by people who have a hard time controlling themselves that now I can link back to this whenever it comes up.

Croix4 votes

i have a real hard time not calling out people who talk shit. i am literally never toxic unless someone starts talking shit first, but that is also against the rules, so it is better for me to just not be able to.

to be honest i just prefer muting everyone

Angry 4 Year Old1 votes

{quoted}

i have a real hard time not calling out people who talk shit. i am literally never toxic unless someone starts talking shit first, but that is also against the rules, so it is better for me to just not be able to.

to be honest i just prefer muting everyone

I just had Player Support link me to this, doubtful it will get anyone banned.

AeroWaffle2 votes

Unfortunately, quite a few people would just rush to turn it off mid match when they feel like they really need to tear into a player. But still something to give them a little extra time to think about what they're about to do.

Report Valkyrja2 votes

Could an admin or something confirm that this is not against the rules of ur game to use?

ScrubLordSarah2 votes

An admin was the one who actually referred me to this page in order to unbind my enter key.

TILTED2TRICKPONY2 votes

much love

You are terrible2 votes

Still works. I owe you one.

WhiteMexicanJew2 votes

does it still work? Tried using it and nothing works. I right clicked on the .ahk and opened it with autohotkey but it does nothing.

Mr Shift It2 votes

{quoted}

does it still work? Tried using it and nothing works. I right clicked on the .ahk and opened it with autohotkey but it does nothing.

Works fine, just tried it myself

rtbf125513271 votes

yo have you been banned for scripting yet at all this was 3 months ago i asume you're still using it has it been ok ?

Exacerberus1 votes

Same, I am sure I followed all the steps properly but the script is not doing anything for me.

WhiteMexicanJew2 votes

{quoted}

Same, I am sure I followed all the steps properly but the script is not doing anything for me.

so i figured how to fix it. So basically what you have to do it go to your task manager then go to processes and find the script usually its under "AutoHotkey" then right click on it and go to properties and make it run with admin rights. Once you do so, it should start working, if not, close it and run it again. Hope this helps.

Exacerberus2 votes

Omg, it works!... and it was so damn obvious!, I swear I'm getting duller any day it comes by... Thank you for figuring it out dude, much appreciated. Just for the sake of safety I've opened the AutoHotkey folder and given admin rights to all the .exe components in there.

WhiteMexicanJew2 votes

{quoted}

Omg, it works!... and it was so damn obvious!, I swear I'm getting duller any day it comes by... Thank you for figuring it out dude, much appreciated. Just for the sake of safety I've opened the AutoHotkey folder and given admin rights to all the .exe components in there.

glad i could help :).

MBiY2 votes

Is this legal a admin told you that?

WhiteMexicanJew3 votes

i had a riot support person linking me to this page so it should be on the up and up.

WhiteMexicanJew2 votes

didn't work for me at all not sure if its out dated or what but after loading it with autohotkey, it does nothing.

Chibi Illaoi2 votes

An absolute miracle for people like me who have trouble controlling our freaking Mouths but who wish to be better.

Thanks for this, this will help win a lot more games and help other players enjoy their time on the rift.

Makes no sense why riot wouldn't make removing the chat functionality as a possibility anyway

HPLT2 votes

I am currently working on a Chat restriction script, which shall reset once you get out of the game. If you can wait some time I will make it available. Compared to this method, it will also allow Input similar to the chat restriction implemented by Riot. You can define how many initial chats you wanna have available, how long the chat restriction will last and how many additional chat prompts you get after the chat restriction timer elapsed. I hate beeing completly cut off from the communication but often find myself arguing too hard - Thus I personally prefer to be permantly chat restricted. However Riot has no intention to implement that.

HPLT2 votes

https://www.reddit.com/r/leagueoflegends/comments/9mvoly/i_wrote_a_self_chat_restriction_script_for_league/

Here you go. I made it as easy as possible to load. In the loading screen you just have to tab out and use the left mouse button once - A tooltip that the script successfully loaded will appear at your mouse cursor.

Cheers :)

Ofc setting the available chat messages (and tooltip time) to 0 will have the same effect as the script above.

Karunamon1 votes

Good stuff! Iif you can have it activate without the need to tab out, you've got an even bigger winner. Basically, anyone who wants to be affected by this shouldn't need to remember to manually enable it.

HPLT1 votes

Unfortunately there is currently no workaround for that. The method I used is the most conveneint that is currently working I guess. I bound it to left click because it is probably the most clicked button outside of Windows.

The script will start automatically:

  • if you press left click when the game switches from champ select to loading screen
  • if you are ingame and realised it is not working -> You tab out and press the left click
  • You browse on your desktop while loading screen (what most people do)

I tried several stuff and it was quite tricky to load the script just in the first instance of tabbing out (otherwise you get a nasty loading symbol everytime you left click and the system will shortly hickup).

Only unfortunate thing: Reddit doesn't seem to appreciate it. People are rather discussing the fact why RIOT is such a bad / good company and that it is pure selfcontrol to not interact with your teammates, instead of appreciating the fact that it might be helpful to some to control bad behaviour in borderline toxic situations.

Terozu1 votes

You could also just unbind your enter key in the ingame options menu...

Karunamon6 votes

Enter doesn't have a bind option that I could see.

MaliceW1 votes

Up? Can one of the rioter confirm if that's not bannable?

ScrubLordSarah2 votes

I was given this link by an admin to use, so I assume, since an admin recommended it, it isn't bannable.

sleepysithlord1 votes

Does this work on macs

Karunamon2 votes

It does not, AutoHotKey is a Windows only app. There are a few separate applications with similar functionality though, but I'm not familiar with hose.

I think you've given me a quick project for tonight. I'll look around and see what I can find.

Boxx of Coxx1 votes

Hey mate have you found out anything yet? I really need a mac version for this trick

Karunamon3 votes

Heya guy, if you're still around, I figured out how to do this for OSX. Check the instructions again :D

sleepysithlord1 votes

{quoted}

Heya guy, if you're still around, I figured out how to do this for OSX. Check the instructions again :D

holy fuck no way you figured it out?!?!?!?!?

Fuck yes! Now I can stop bugging the shit out of people on random computer forums. No more bans for me!

Karunamon1 votes

Do me a favor and test it first though before relying - I don't have League installed on any of my macs, and I'm not sure if the league program's window name is the same between windows and mac. I just kinda copy pasted it.

sleepysithlord1 votes

{quoted}

Do me a favor and test it first though before relying - I don't have League installed on any of my macs, and I'm not sure if the league program's window name is the same between windows and mac. I just kinda copy pasted it.

hmm IDK if its working :(

HammerSpoon is spitting this back at me

2018-06-08 17:47:42: -- Lazy extension loading enabled 2018-06-08 17:47:42: -- Loading ~/.hammerspoon/init.lua 2018-06-08 17:47:42: -- Loading extension: hotkey 2018-06-08 17:47:42: -- Loading extension: window 2018-06-08 17:47:42: -- Loading extension: uielement 2018-06-08 17:47:42: -- Loading extensions: window.filter 2018-06-08 17:47:43: -- Done. 2018-06-08 17:47:47: 17:47:47 ** Warning: wfilter: No accessibility access to app FirefoxCP Web Content (no watcher pid)

Also I can still press enter in game :(

Karunamon1 votes

That's what I was afraid of. Okay, when you have League open, can you try hitting cmd-tab and checking what the game of the game app is? (The actual game that opens up after champ select finishes)

Boxx of Coxx1 votes

Sorry for the bluntness, but have you found anything out, Karunamon senpai?

Karunamon1 votes

Yeah; someone replied back and said that it only worked for them when the game wasn't in fullscreen.. which kinda makes sense.

Change the text to read "League of Legends (TM) Client" and try running the game in either windowed or borderless. There's also an alternate version up in the OP that just unconditionally turns off enter, which should absolutely work regardless of window shenanigans, but will be a bit more annoying (enter won't work anywhere while Hammerspoon is open)

sleepysithlord1 votes

{quoted}

Yeah; someone replied back and said that it only worked for them when the game wasn't in fullscreen.. which kinda makes sense.

Change the text to read "League of Legends (TM) Client" and try running the game in either windowed or borderless. There's also an alternate version up in the OP that just unconditionally turns off enter, which should absolutely work regardless of window shenanigans, but will be a bit more annoying (enter won't work anywhere while Hammerspoon is open)

Thanks for figuring this out! Recently installed league after a two week break and am ready to get out of honor 0 for the first time since honor came out

trísh1 votes

is there a way to have this permanently enabled?

Karunamon1 votes

Not as I write this - something changed in the last patch which breaks the enter disable on Windows unless you reload the script after the game loads.

Götterdämmerung1 votes

Thanks

Pickle Pick1 votes

thank you so much now i can actually play and stick with my word of not flaming anyone

Karunamon1 votes

This is now no longer necessary. As of a patch or two ago, there is an in-client ability to disable ally chat that works just like the checkbox to disable all chat.

Could a kind moderator lock this thread? Thanks!

RΞDBΞARD1 votes

PUSH!

More from Player Behavior

More by Karunamon