r/programmingrequests • • Jun 16 '17

[REQUEST] Simple (?) Write in League chat before removal of enter key functionality.

Hey! I'm toxic in League, and would really like to stop. I've used https://www.reddit.com/r/leagueoflegends/comments/36xn77/how_to_disable_your_own_league_chat_stop_yourself/ , ended up with a notepad saying what it says there. Would anyone here be able to make the script write "/mute all" then "/muteping all" in League chat before it removes enter key functionality? This way everyone's muted as the game starts, so I don't tilt. Thanks!

3 Upvotes

7 comments sorted by

1

u/[deleted] Jun 16 '17 edited Oct 06 '17

[deleted]

1

u/brelia Jun 16 '17

Thanks for the reply! I tried the first option, but the problem with it is when I type /mute (without needing to actually use the chat ofcourse), it opens the shop (?). I tried individually pressing each character of /mute, but it's only with that combination. The same scenario is present with the 2nd option, it just opens the shop. I unbound the open shop key (which is P), but it still issued some seemingly random command, in this case showing attack range (which is usually by pressing A). Do you have any idea why this is? The code I had after I had pasted yours looked like:

#ifwinactive League of Legends (TM) Client
*Enter::return
*NumpadEnter::return

~t::
sendinput {bs}/mute all{enter}/muteping all{enter}

1

u/[deleted] Jun 16 '17 edited Oct 06 '17

[deleted]

1

u/brelia Jun 17 '17

Yup, however the script I'm already using disables my enter key. Is there a way to make writing '/mute' into the chat /mute all, /muteping all and THEN run:

*Enter::return
*NumpadEnter::return

1

u/[deleted] Jun 17 '17 edited Oct 06 '17

[deleted]

1

u/brelia Jun 17 '17

So I've got the first script you suggested working, and it's great, but is there a way to disable T from being used after the first time?

1

u/[deleted] Jun 17 '17 edited Oct 06 '17

[deleted]