diff --git a/AutoClicker/Views/MainWindow.xaml.cs b/AutoClicker/Views/MainWindow.xaml.cs index f64c786..1c1fd34 100644 --- a/AutoClicker/Views/MainWindow.xaml.cs +++ b/AutoClicker/Views/MainWindow.xaml.cs @@ -120,10 +120,11 @@ protected override void OnClosed(EventArgs e) private void StartCommand_Execute(object sender, ExecutedRoutedEventArgs e) { int interval = CalculateInterval(); - Log.Information("Starting operation, interval={Interval}ms", interval); - - timesRepeated = 0; clickTimer.Interval = interval; + + Log.Information("Starting operation, interval={Interval}ms", interval); + InitMouseClick(); + timesRepeated = 1; clickTimer.Start(); Icon = new BitmapImage(runningIconUri);