From 3cf590d04ac4fb128ac4f9c565059541afe304be Mon Sep 17 00:00:00 2001 From: MELVAR Date: Sat, 3 Jul 2021 22:12:10 +0200 Subject: [PATCH] Fix button (click -> invoke) --- League Pass Manager/MainWindow.xaml.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/League Pass Manager/MainWindow.xaml.cs b/League Pass Manager/MainWindow.xaml.cs index ad04bc2..ec7a24e 100644 --- a/League Pass Manager/MainWindow.xaml.cs +++ b/League Pass Manager/MainWindow.xaml.cs @@ -287,7 +287,8 @@ void simulateFill(Process pr) { try { - mainWindow.FindFirstDescendant(cf.ByName("Sign in")).AsButton().Invoke(); + + mainWindow.FindFirstDescendant(cf.ByName("Sign in").And(cf.ByControlType(ControlType.Button))).AsButton().Invoke(); tryAgain = false; } catch (Exception e) { }