Skip to content

Commit

Permalink
Execute mouse click on timer start (#94)
Browse files Browse the repository at this point in the history
  • Loading branch information
oriash93 authored Oct 13, 2024
1 parent 4f0f0a8 commit e1630e9
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions AutoClicker/Views/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

1 comment on commit e1630e9

@ineedunblockerpls
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

how to use

Please sign in to comment.