Skip to content

Commit 59d3730

Browse files
committed
Correct Exit button position
Correct the position of the exit button click and swap the order around. The Sign Out button was pressed before which resulted in the launcher reopening by itself, which was undesired (remove the delay workaround for this as well).
1 parent e4b68ac commit 59d3730

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

fass.ahk

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,20 +48,23 @@ Main:
4848
CloseButtonX := ClientWidth * 0.9849
4949
CloseButtonY := ClientHeight * 0.0203
5050
; Can be an exit button...
51-
ExitButtonX := ClientWidth * 0.5447
51+
ExitButtonX := ClientWidth * 0.4557
5252
ExitButtonY := ClientHeight * 0.5574
5353
; ...or a Yes button.
5454
YesButtonX := ClientWidth * 0.4739
5555
YesButtonY := ClientHeight * 0.6018
5656

5757
ControlClick, x%CloseButtonX% y%CloseButtonY%, ahk_exe LeagueClientUx.exe
5858

59+
; Delay for a bit since the client can be slow to open the window sometimes.
5960
Sleep, 500
6061

61-
ControlClick, x%ExitButtonX% y%ExitButtonY%, ahk_exe LeagueClientUx.exe
62+
; Click the Yes button first because if the Exit button is the correct one
63+
; the other click sometimes still goes through before the client exits
64+
; potentially resulting in a click on the start page of the client which
65+
; opens up a website in a browser.
6266
ControlClick, x%YesButtonX% y%YesButtonY%, ahk_exe LeagueClientUx.exe
63-
64-
Sleep, 7000
67+
ControlClick, x%ExitButtonX% y%ExitButtonY%, ahk_exe LeagueClientUx.exe
6568
}
6669

6770
;;; KILL ALL (DEAD) PROCESSES

0 commit comments

Comments
 (0)