Skip to content

I wrote a self chat restriction script for league

HPLT··20 votes·15,483 views

Hello Community,

I post this separately thus people on the internet, which searching for such a solution might find it easier through the google algorithm. Inspired by the following thread:

https://boards.na.leagueoflegends.com/en/c/player-behavior-moderation/ghKQoeu8-how-to-unbind-your-enter-key-to-prevent-inadvertent-toxicity

I wrote a self chat restriction script for League of Legends using Autohotkey. I've seen some threads requesting such a tool, but I was surprised no one actually provided a solution in the past. Compared to the method explained in the thread above, it enables a similar experience to the chat restriction implemented by Riot. You can define how many initial chat messages you want to 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 being completely cut off from the communication but often find myself arguing too hard - Thus I personally prefer to be permantly chat restricted.

You can download it here:

[removed by moderation pending more information on the legality of the script]

I also added tooltips, thus you can see if it is loading/working correctly.

What do you have to do:

  1. Download Autohotkey - https://autohotkey.com/

  2. Run the Script

  3. Start League

  4. Select a game

  5. Between champ select and Loading screen OR if the game is already running tab out and press the left mouse click once--> You will see a message that the Script successfully loaded at the tip of your mouse cursor (League of Legends.exe must be started but not an active window to start the script)

  6. Play the game :)

In order to load the script in a new game just du step 5 before every game (as long as the script is running).

The script doesn't interfere with the rest of windows. So you can tab out of a game and the system should behave normally.

Cheers Max / HPLT

virustotal scan:

https://www.virustotal.com/de/file/e67db90b37d4736ef2f62ee16b068f23e32250107c12ad103d383b43d59a5743/analysis/1539137476/

P.S. If we have an admin here it would be very nice to know, if it is a bannable cause. I found a response by a Riot employee for the unbind Enter key script but it would be very nice if someone can verify that statement also for this case. https://boards.euw.leagueoflegends.com/en/c/player-behaviour-en/WvoxQ6b7-perma-banned-for-disabling-enter-key?show=flat&page=3

Hi there,

NiceToMeatYou44 here.

I'm afraid the Enter key cannot be unbound.

Now, regarding the program, as long as you are not using Autohotkey to spam the chat (you're doing quite the opposite here), which IS bannable, then you should be able to use it without a problem.

I ask that you would use the hotkeys responsibly, and as long as you do, then you should have nothing to worry about

If you have any other questions, feel free to let me know!

All the best,

NiceToMeatYou44

Player Support Specialist

54 Comments

ModThe Djinn26 votes

Hey!

Awesome initiative. I've pinged my Riot contacts about seeing if I can get you a response on the legality of this script, although I can't promise any response, obviously.


#IN THE MEANTIME, I WOULD SUGGEST THAT PEOPLE DO NOT USE THIS SCRIPT UNLESS/UNTIL IT IS CLEARED BY RIOT.

I have removed the download links until such time as we can get Riot feedback to avoid potential account compromise. Thank you for your understanding.

mlm olo mlm2 votes

[{quoted}](name=The Djinn,realm=NA,application-id=ZGEFLEUQ,discussion-id=A0McBK1V,comment-id=0000,timestamp=2018-10-10T13:12:41.520+0000)

Hey!

Awesome initiative. I've pinged my Riot contacts about seeing if I can get you a response on the legality of this script, although I can't promise any response, obviously.


#IN THE MEANTIME, I WOULD SUGGEST THAT PEOPLE DO NOT USE THIS SCRIPT UNLESS/UNTIL IT IS CLEARED BY RIOT.

I have removed the download links until such time as we can get Riot feedback to avoid potential account compromise. Thank you for your understanding.

Pin the thread please.

ModThe Djinn3 votes

[{quoted}](name=mlm olo mlm,realm=NA,application-id=ZGEFLEUQ,discussion-id=A0McBK1V,comment-id=00000000,timestamp=2018-10-10T15:30:16.176+0000)Pin the thread please.

If the idea gets Riot approval, that's something we could consider, definitely.

ChuShoe1 votes

[deleted]

AeroWaffle2 votes

{quoted}

Fun. Even if you know you're gonna have issues, you can't even keep yourself from flaming if you wanted to. I think this counts as evidence the company wants people to get banned, so they can get people to buy stuff on their alts

No, it doesn't.

They've already given the endless chat restriction a try and it resulted in many of the people just trolling when they couldn't talk. So that idea was scrapped.

OP's suggestion would ultimately be a restriction that is self-imposed, self-removable, and not just a button click away from implementing which might make the difference for the people with the mentality to actually change.

ModThe Djinn4 votes

{quoted}Fun. Even if you know you're gonna have issues, you can't even keep yourself from flaming if you wanted to. I think this counts as evidence the company wants people to get banned, so they can get people to buy stuff on their alts

...dude, what? Not at all. I personally think this is a fucking great idea, and that whole "banned people represent a financially significantly portion of Riot's income and come back and spend money repeatedly after being banned" is definitely a conspiracy theory.

The only reason I posted this recommendation is that this is a third-party script, and, as Riot's rules, third-party code that interacts with the client in any way can get you in trouble. I'd prefer to ensure that, if I'm going to allow a third-party script to be linked here, it isn't going to be one that causes people using it to get banned for its use, and that means I'd like to get Riot approval, or at least an official "this one will be use-at-your-own-risk, but probably won't get you banned on sight."

ViralSurvival1 votes

It's a third party download that affects the game. Its already against the T+C of using the game client. In addition,why use something that would compromise the security of your account, I'm not saying this isn't a legit idea but a hacker is hardly going to say "hey, I've got this 3rd party script for you to use so I can access and steal your account", are they?

HPLT1 votes

I will answer that: The tool provided here is not an encrypted executable. You have the source code. You see what it does. It is impossible to get hacked by it unless Autohotkey (a widely used tool) contains a trojan. Also while it does effect the game, it is not analysing any data of league itself. It just looks at the keyboard and mouse inputs you provide and if certain keys are pressed during the League of Legends window is active, the tool becomes active. In League itself basically only the Enter Key, the numpad Enterkey, and Alt+ Tab are analysed or triggers an event. All other keys stay untouched.

ViralSurvival1 votes

Can someone who is not linked to the project 100% say this without extensive testing first? I wouldn't have thought so. As I said, I am not implying this is a certain security breach or a non legitimate idea, but without the thorough testing first and OK by Riot (including the legality of its use), you'd be a bit of a fool to blindly trust any old third party software especially with hard earned account accomplishments.

I for one think that measures to improve player behaviour even if it means saving a person from themselves is a great idea and fully support it so long as it goes through the right channels, and hopefully it does.

TrulyBland1 votes

If the program really is as simple as the OP suggests I doubt extensive testing is really necessary. Analyzing the source code and formally verifying what it does will probably be both quicker and safer.

HPLT1 votes

No one here has the script except me. If you get the data you will see it doesn't have the ending .exe but ".ahk" . You just right click on the data file and then select "edit" from the dropdown menu. This opens the editor with the source code. Then you can directly what it does line by line.

ViralSurvival1 votes

That's great. As I said I think its a great idea and fully support the idea. I just feel more comfortable having the OK from riot beforehand as I am not as well educated in computer programming, and its quite likely the majority of users are not either. And obviously want to make sure its use would not risk my account being banned, as should everyone.

I cant quite remember the original point I was replying to, I think it was something along the lines of riot only want money and don't care about your security or something, unfortunately that person seems to have deleted their post so I cant even see what point I was referring to in the first place lol.

Vlada Cut1 votes

[{quoted}](name=The Djinn,realm=NA,application-id=ZGEFLEUQ,discussion-id=A0McBK1V,comment-id=0000,timestamp=2018-10-10T13:12:41.520+0000)

Hey!

Awesome initiative. I've pinged my Riot contacts about seeing if I can get you a response on the legality of this script, although I can't promise any response, obviously.


#IN THE MEANTIME, I WOULD SUGGEST THAT PEOPLE DO NOT USE THIS SCRIPT UNLESS/UNTIL IT IS CLEARED BY RIOT.

I have removed the download links until such time as we can get Riot feedback to avoid potential account compromise. Thank you for your understanding.

LOL links are still here.

ModThe Djinn1 votes

[{quoted}](name=Vlada Cut,realm=EUNE,application-id=ZGEFLEUQ,discussion-id=A0McBK1V,comment-id=00000002,timestamp=2018-10-11T13:13:48.966+0000)

LOL links are still here.

Those links are not to the OPs script.

HPLT3 votes

Thank you for the fast response. I want to point out that I didn't create that script to compromise RIOT. As some of you may know, conversations can be become pretty nasty especially if the game is heading towards a loss. You might write something, what you would not do typically and regret afterwards. The whole purpose of the script is, that if you have just limited chat resources you might use them for the most important things and don't start a heated conversation with your own team or the enemy. If you look into the raw code, all it does is basically setting the enter key to sleep after a certain amount of presses. It is far from perfect as it doesnt detect if you actually typed in something, but it shouldn't destroy the actual purpose and I could add that in the future (if found to be legal by RIOT)

ModThe Djinn9 votes

{quoted}

Thank you for the fast response. I want to point out that I didn't create that script to compromise RIOT.

I'm very well aware but, as a moderator, I have to keep in mind two facts:

  • I did not personally view this code for potential issues.
  • 3rd party scripts are, traditionally, not allowed by Riot.

As such, I need their buy-in to allow this. The reason I didn't simply remove the thread is that I think it's a valuable tool and I want to get their input so I can allow this. :)

LTUX3R V91 votes

disabling enter key is no script lol. And btw it feels weird for me to see somebody just finding out about thie enter key now i have seen in many months ago before summer at least.

ModThe Djinn5 votes

[{quoted}](name=LTUX3R V9,realm=EUW,application-id=ZGEFLEUQ,discussion-id=A0McBK1V,comment-id=000100000000,timestamp=2018-10-10T13:32:17.877+0000)disabling enter key is no script lol.

Sure. I do know that. I also know that program links that interact with League in any way are things we normally don't allow here. I'm being cautious about potential issues because it's my responsibility as a moderator to be so, especially when an individual's account could be at risk due to a 3rd party application.

HPLT2 votes

I mentioned this thread at the beginning of my post. Even if you don't consider the "unbind enter key" method to be a script it still is. What the 2 lines of code basicly do, is to press enter after you hit return. It is a very simple script but it still is one. The question will not be, if the script I posted is legal but if it is safe to use Autohotkey in the background of league. People tend to be very cautious when it comes to 3rd party applications, so the best thing which can happen is actually getting a response on the legality.

KFCeytron1 votes

{quoted}

I mentioned this thread at the beginning of my post. Even if you don't consider the "unbind enter key" method to be a script it still is. What the 2 lines of code basicly do, is to press enter after you hit return. It is a very simple script but it still is one. The question will not be, if the script I posted is legal but if it is safe to use Autohotkey in the background of league. People tend to be very cautious when it comes to 3rd party applications, so the best thing which can happen is actually getting a response on the legality.

Why turn a single Enter press into a double-press rather than just eating it with "Enter::return"?

AeroWaffle2 votes

Don't know if it was intentional, but having it as a double press would still likely let the enter key function as a button to make the chat visible (if you want to see chat but nothing has happened recently).

KFCeytron1 votes

{quoted}

Don't know if it was intentional, but having it as a double press would still likely let the enter key function as a button to make the chat visible (if you want to see chat but nothing has happened recently).

The Z button (by default) does that already. It also shows more of the chat than you get by pressing Enter. There's also no possibility of typing a message by accident, and the button is easier to reach. :)

AeroWaffle1 votes

Fair enough, though I never think of hitting 'z' personally to show chat. I may have rebinded it away to something more useful considering it's in prime real estate of reachable keys. I think mines bound as 'target champion only'.

KFCeytron2 votes

[{quoted}](name=LTUX3R V9,realm=EUW,application-id=ZGEFLEUQ,discussion-id=A0McBK1V,comment-id=000100000000,timestamp=2018-10-10T13:32:17.877+0000)

disabling enter key is no script lol. And btw it feels weird for me to see somebody just finding out about thie enter key now i have seen in many months ago before summer at least.

Um, actually, it is a script. The AHK interpreter reads through the script file and executes each command. You probably mean it's not playing the game for the OP, which of course it isn't, but it's still a script.

And isn't this still a third-party program that provides an advantage (no inflammatory replies to toxic situations) over people who don't have it?

TrulyBland4 votes

And any script that interferes with LoL in any way is, by default, not allowed. And a mod simply isn't allowed to make a call on whether or not to allow a script, no matter how obvious it is that it doesn't offer an unfair advantage, or how similar it is to something else that is allowed.

TheMinez1 votes

Well there are some special cases sometimes, such as whoever did that one "twitch chat plays league of legends" video. We just need to wait for a red to pop in.

TrulyBland2 votes

That's why I said "by default". I actually have no doubt that Riot will be fine with this. All I meant to do was defend the decision of the mod.

KFCeytron1 votes

[{quoted}](name=LTUX3R V9,realm=EUW,application-id=ZGEFLEUQ,discussion-id=A0McBK1V,comment-id=00010000000000010000,timestamp=2018-10-10T13:50:19.697+0000)

https://boards.na.leagueoflegends.com/en/c/player-behavior-moderation/ghKQoeu8-how-to-unbind-your-enter-key-to-prevent-inadvertent-toxicity jesus christ i meant scrip hacks for advantage obv it's a script.

And isn't it still an advantage?

FOR JUSTICE1 votes

not really in this case though, its mutes yourself, so that would theoretically put you at a disadvantage tbh

KFCeytron1 votes

{quoted}

not really in this case though, its mutes yourself, so that would theoretically put you at a disadvantage tbh

Isn't the entire purpose of the script to reduce arguments and help people focus on the game, for an advantage?

FOR JUSTICE1 votes

well the original intention of this script is to help people reform. and focus on the game is the first and foremost thing everyone should do tbh. because its not a typing simulator, its league

Who Fed Ru3 votes

Inb4 Riot bans for scripting

HPLT3 votes

Quick update: I improved the the script thus it now detects if you actually typed something, Also fixed some bugs and loopholes, which you could have used to type indefinitely. I will await The Djinns and RIOT answer before making it publically available. If someone wants to try it on his own risk, he can contact me. I will dissociate myself however from any consequences this might have :-).

Cheers

Umbral Regent3 votes

I am personally very unsure how I feel about this. On the one hand, anyone here who knows me likely knows that I'm staunchly against personal chat restrictions/self-mutes primarily for the fact that they mostly run counter to the idea of personal reform - as well as that their effectiveness hinges on player self-awareness.

But, on the other hand, seeing someone having put forth the effort to make it a possibility, with even going out of your way to clarify with Riot if the script would be allowed or use-at-risk - even moreso with The Djinn spurring on communication with Riot about the legality and usability of the script, even the more cynical part of me is bound to have second thoughts about this.

I can't say I'm particularly excited with the concept becoming a reality - of all things, that opinion isn't conflicted - but, for what it's worth, I applaud your efforts regardless.

Starcraft243ver2 votes

How about a script that get every single of your inputs between two pressure on the enter key and then nicify the content using cloud based machine learning tools that can sort out if a message is toxic or not and make the message not toxic :

Ex:

User type : "wtf are you doing kayle ? put some wards in the jungle retard" Script reads it, algorithm reads it and change it to : "Be carefull summoners these woods are not safe ! Kayle, could you lighten our path in the darkness ?"

User type : "report this troll feeding" Script : "Be cautious fellow summoner, I salute your courage, but they have some scary weapons, you wouldnt be a coward if you stayed out of range !"

HPLT4 votes

{quoted}

How about a script that get every single of your inputs between two pressure on the enter key and then nicify the content using cloud based machine learning tools that can sort out if a message is toxic or not and make the message not toxic :

Ex:

User type : "wtf are you doing kayle ? put some wards in the jungle retard" Script reads it, algorithm reads it and change it to : "Be carefull summoners these woods are not safe ! Kayle, could you lighten our path in the darkness ?"

User type : "report this troll feeding" Script : "Be cautious fellow summoner, I salute your courage, but they have some scary weapons, you wouldnt be a coward if you stayed out of range !"

While this is feasible I hardly believe it is doable in a appropriate amount of time using Autohotkey. It uses a very akward language and you cannot implement libraries. It is very limit in its use cases. I am currently working on detecting if an input between to enter strokes was done, in order to prevent that empty messages will lead to consumption of available chat messages. Even that is given me headaches because I also have to consider tabbing in and out. It might be easier to have a list of inappropriate words, which prevent the message from going through. But than again, I don't want to get babysitted by the script. I don't think you will change your behaviour if a program just filters your innappropriate language - You need to have the will to reform.

Starcraft243ver1 votes

I was thinking about getting the outstream of the keyboard directly to analyze it. maybe with windows API.

Phoenixdust1 votes

It was done, if you are familiar with c# feel free to extend it and publish a better version :)

https://boards.na.leagueoflegends.com/en/c/player-behavior-moderation/F59hE5io-self-mute-option

Phoenixdust1 votes

If you are familiar with C# you can just use my code to make a better version of this.

https://boards.na.leagueoflegends.com/en/c/player-behavior-moderation/F59hE5io-self-mute-option

In theory it is possible to save the input between 2 enter presses, and you can inject backspaces in the input stream before the 2nd enter press happens (It would be ideal to directly delete it from the LoL memory, but that is against the rules, so injecting backspaces is the only viable solution here, i think O.o). So you could delete at least the zero tolerance words. I think using an AI to detect the toxicity in the messages might be too time consuming and would put a big delay on the button press. So i do not think that is a good idea.

To make it delete the zero tolerance words is not a big deal.

HPLT1 votes

{quoted}

If you are familiar with C# you can just use my code to make a better version of this.

https://boards.na.leagueoflegends.com/en/c/player-behavior-moderation/F59hE5io-self-mute-option

In theory it is possible to save the input between 2 enter presses, and you can inject backspaces in the input stream before the 2nd enter press happens (It would be ideal to directly delete it from the LoL memory, but that is against the rules, so injecting backspaces is the only viable solution here, i think O.o). So you could delete at least the zero tolerance words. I think using an AI to detect the toxicity in the messages might be too time consuming and would put a big delay on the button press. So i do not think that is a good idea.

To make it delete the zero tolerance words is not a big deal.

Sounds super interesting but I think you overestimate my capabilities. I am not a programmer but a materials scientist and just code a bit for fun :p. Unfortunatly I am not familiar with C#, but hey maybe (in the future) I will look into it to realise what it does. Problems with writing a real program - Either I post the source code and most people don't know how to compile it or I create an .exe and it will never get approved because I could hide harmful code in it. I mean theoretically It should be possible to also detect the input between the two enter strokes with autohotkey by using regular expression and then store this data and compare it with a list of innappropriate words and phrases, but this list would be stored in plain text and people would find easy workarounds like removing single letters to be able to still post the message. I think it would rather be a feasibility study than anything else ^^.

Papuga1 votes

I love your turns of phrase, I think they're hilarious! I would love to see this in the game somehow. Rather than have a script this could be a Riot initiative where rather than being chat restricted you were restricted to predetermined chat options like in Hearthstone. You'd just need a nice little UI and a library of responses. I could see different 'voice packs' be a thing for variaty available for some blue essence.

Tormentula2 votes

Well it would likely result in;

a) players who vent knowing it will change anyway just to release frustration could say something that might go through unintentionally and get baited into a ban.

b) the fact they type the literal some phrases could alert bot detections. A lot of bots will have the same responses to specific situations so seeing long text like that could seem bot related.

c) it won't pick up on everything and it would have to be so inhumanly specific to achieve that. Not to mention the times were players will test its limits.

mlm olo mlm1 votes

Riot sure does read slowly.

HPLT1 votes

Hmm /push would like to know if there is maybe an update to this topic :)

mlm olo mlm1 votes

{quoted}

Hmm /push would like to know if there is maybe an update to this topic :)

Not going to be approved. Went straight into Riot trash can.

Moderator fucked you over because they are ignorant and Riot fan club.

I doubt the script was illegal. Maybe you can spread it via other medias.

HPLT1 votes

Since it is a month now

/push

Just wanna make sure me/people don't get banned for using it.

JoeyDoeII1 votes

I've been searching for something like this for quite a while. I'm not sure if you've received any updates from riot but I am fine with the risk and would most likely try it on an alternative account.

[email protected]

Just trying to test out methods to help myself. If you can't share it that's fine but I thought it would be worth a shot.

JAGL Aqua1 votes

bump for reminder lol

More from Player Behavior