I've come to accept the fact that I get too angry while playing. I need to remove the option to chat to other players. I use AutoIt in my work a lot. I'd like to write a 2-3 line script which looks to see if the window is active and then disable the [Enter] key, but I'd like to know if this will be picked up as a cheat and my account banned. Can someone from Riot let me know if this will be detected as a cheat?
**EDIT - Solution**
I'm taking the risk and created the script anyway.
I couldn't figure out how to disable the key, so I did something different.
Everytime the enter key is rpessed, the program presses it again, superfast so you can't type anything. If I try to alt+tab out of the game to turn off the program, it will straight away put me back in the game.
The only way to turn off the program would be to quit the game and then turn it off in the bottom right taskbar.
If anyone is interested, here is the code.
> #include <Misc.au3>
Local $hDLL = DllOpen("user32.dll")
if Not winexists("League of Legends (TM) Client") Then
if winexists("League of Legends (TM) Client") And not WinActive("League of Legends (TM) Client") Then
WinActivate("League of Legends (TM) Client")
if winactive("League of Legends (TM) Client") Then
if _IsPressed ( "0D" , $hDLL ) Then