League of Legends Script, Works Just Once Topic is solved

Ask gaming related questions (AHK v1.1 and older)
mark9150
Posts: 3
Joined: 18 Jun 2018, 14:04

League of Legends Script, Works Just Once

18 Jun 2018, 14:23

:terms: Hey People, I have a problem with this code:

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

It's Working only once. (for 1 game) :?
Every time I need to re-create a file and paste the script and save it up as a new file for it to work. :headwall: :facepalm:

I would like to have the script work, game after game, without the need to re-create the whole file, time and time again. :problem:

The Idea is that :

Whenever the ENTER key is pressed in-game. It automatically presses it again. (this effectively disable's the user from using the chat-box)

Can any of you provide an improved or different code?

Thank you very much! :dance: :wave:
enes3626
Posts: 2
Joined: 18 Jun 2018, 13:51

Re: League of Legends Script, Works Just Once  Topic is solved

18 Jun 2018, 14:38

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


use this
User avatar
StundeR
Posts: 18
Joined: 03 Aug 2016, 10:05

Re: League of Legends Script, Works Just Once

18 Jun 2018, 16:55

Code: Select all

#SingleInstance force
WinGet, id, ID, League of Legends (TM) Client
#ifwinactive ahk_id %id%
*Enter::return
*NumpadEnter::return
Hi
mark9150
Posts: 3
Joined: 18 Jun 2018, 14:04

Re: League of Legends Script, Works Just Once

19 Jun 2018, 11:31

StundeR wrote:

Code: Select all

#SingleInstance force
WinGet, id, ID, League of Legends (TM) Client
#ifwinactive ahk_id %id%
*Enter::return
*NumpadEnter::return
Result:
https://snag.gy/Ks6YFI.jpg

Thanks for trying tho'
mark9150
Posts: 3
Joined: 18 Jun 2018, 14:04

Re: League of Legends Script, Works Just Once

19 Jun 2018, 11:33

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


use this
I found that the original code also worked IF the file is set to Read-Only.

Thank you for your time and effort! :dance:

Return to “Gaming Help (v1)”

Who is online

Users browsing this forum: No registered users and 59 guests