From 1d818ba6ac6d8af9ea90fbdbd65ff3d7941abdb4 Mon Sep 17 00:00:00 2001 From: MELVAR Date: Sat, 6 Nov 2021 09:14:15 -0700 Subject: [PATCH] fix new launcher selectors & window name --- LeagueAccManager/AutoFill.cs | 2 +- LeagueAccManager/MainWindow.xaml.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/LeagueAccManager/AutoFill.cs b/LeagueAccManager/AutoFill.cs index 8a88392..d4ac5f0 100644 --- a/LeagueAccManager/AutoFill.cs +++ b/LeagueAccManager/AutoFill.cs @@ -90,7 +90,7 @@ public static void lol(Process pr) { try { - mainWindow.FindAt(TreeScope.Descendants, 4, cf.ByControlType(ControlType.Button)).AsButton().Invoke(); + mainWindow.FindAt(TreeScope.Descendants, 3, cf.ByControlType(ControlType.Button)).AsButton().Invoke(); tryAgain = false; } catch (Exception e) { } diff --git a/LeagueAccManager/MainWindow.xaml.cs b/LeagueAccManager/MainWindow.xaml.cs index 2b5040d..9e5a74d 100644 --- a/LeagueAccManager/MainWindow.xaml.cs +++ b/LeagueAccManager/MainWindow.xaml.cs @@ -346,7 +346,7 @@ private async void fillButton_Click(object sender, RoutedEventArgs e) } var mainWindowTitle = pname[0].MainWindowTitle; - while (mainWindowTitle != "Riot Client") + while (mainWindowTitle != "Riot Client Main") { await Task.Delay(200); Process[] proc = Process.GetProcessesByName("RiotClientUx");